Processor Info
This example shows accessing processor information.
04
Set
wmiSvcObj = GetObject(
"winmgmts:\\"
& strCompName &
"\root\CIMV2"
)
05
Set
selProcessors = wmiSvcObj.ExecQuery(
"Select * from Win32_Processor"
)
07
For
Each
processorObj in selProcessors
09
WScript.Echo
"Name: "
& processorObj.Name
10
WScript.Echo
"Description: "
& processorObj.Description
11
WScript.Echo
"Processor ID: "
& processorObj.ProcessorID
12
WScript.Echo
"Manufacturer: "
& processorObj.Manufacturer
13
WScript.Echo
"Family: "
& processorObj.Family
14
WScript.Echo
"Address Width: "
& processorObj.AddressWidth
15
WScript.Echo
"Data Width: "
& processorObj.DataWidth
16
WScript.Echo
"Maximum Clock Speed: "
& processorObj.MaxClockSpeed
It gives the following output,
Name: Intel(R) Core(TM)2 Duo CPU T9600 @ 2.80GHz
Description: x86 Family 6 Model 23 Stepping 10
Processor ID: BFCBFAFF0001067C
Manufacturer: GenuineIntel
Family: 2
Address Width: 32
Data Width: 32
Maximum Clock Speed: 2792