Hi Geeks,
I am trying to execute the below script(cpu usage2_1.vbs) and I am getting the invalid character error 800A0408.
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
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