Set objWMIService = GetObject("winmgmts:\\.\root\cimv2") Set CPUs = objWMIService.InstancesOf("Win32_Processor") For Each ObjCPU In CPUs WScript.Echo ObjCPU.ProcessorId Next复制代码