On Error Resume Next
strComputer=”.”
On Error Resume Next
strComputer=”.”
Set objWMIService=GetObject(“winmgmts:\” & strComputer & “\root\cimv2”)
Set colItems=objWMIService.ExecQuery(“Select * from Win32_Processor”,,48)
For Each objItem in colItems
WScript.Echo “LoadPercentage: ” & objItem.LoadPercentage
Next
© 版权声明
文章版权归作者所有,未经允许请勿转载。