'1.获取CPU信息
REM The Win32_Processor WMI class represents a device that can interpret
REM a sequence of instructions on a computer running on a Windows operating
REM system.On a multiprocessor computer, one instance of the Win32_Processor
REM class exists foreach processor.
OnErrorResumeNext
strComputer ="." Set objWMIService =GetObject("winmgmts:" _ &"{impersonationLevel=impersonate}!\\"& strComputer &"\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Processor")