800A0408 Invalid character

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vensriram
    New Member
    • Aug 2010
    • 48

    800A0408 Invalid character

    Hi Geeks,
    I am trying to execute the below script(cpu usage2_1.vbs) and I am getting the invalid character error 800A0408.

    Code:
    $proc =get-counter -Counter "\Processor(_Total)\% Processor Time" -SampleInterval 2
    $Cpu=($proc.readings -split ":")[-1]
    $cpu
    1. From Google the information was either there will be special characters or it will not be in ANSI encoding. But i have tried both and still the error persists
Working...