Export (0) Print
Expand All
Expand Minimize

Win32_Processor class

The Win32_Processor WMI class represents a device that can interpret a sequence of instructions on a computer running on a Windows operating system.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties are listed in alphabetic order, not MOF order.

Syntax

[Provider("CIMWin32")]class Win32_Processor : CIM_Processor
{
  uint16   AddressWidth;
  uint16   Architecture;
  uint16   Availability;
  string   Caption;
  uint32   ConfigManagerErrorCode;
  boolean  ConfigManagerUserConfig;
  uint16   CpuStatus;
  string   CreationClassName;
  uint32   CurrentClockSpeed;
  uint16   CurrentVoltage;
  uint16   DataWidth;
  string   Description;
  string   DeviceID;
  boolean  ErrorCleared;
  string   ErrorDescription;
  uint32   ExtClock;
  uint16   Family;
  datetime InstallDate;
  uint32   L2CacheSize;
  uint32   L2CacheSpeed;
  uint32   L3CacheSize;
  uint32   L3CacheSpeed;
  uint32   LastErrorCode;
  uint16   Level;
  uint16   LoadPercentage;
  string   Manufacturer;
  uint32   MaxClockSpeed;
  string   Name;
  uint32   NumberOfCores;
  uint32   NumberOfLogicalProcessors;
  string   OtherFamilyDescription;
  string   PNPDeviceID;
  uint16   PowerManagementCapabilities[];
  boolean  PowerManagementSupported;
  string   ProcessorId;
  uint16   ProcessorType;
  uint16   Revision;
  string   Role;
  string   SocketDesignation;
  string   Status;
  uint16   StatusInfo;
  string   Stepping;
  string   SystemCreationClassName;
  string   SystemName;
  string   UniqueId;
  uint16   UpgradeMethod;
  string   Version;
  uint32   VoltageCaps;
};

Members

The Win32_Processor class has these types of members:

Methods

The Win32_Processor class has these methods.

MethodDescription
Reset

Not implemented. For more information about how to implement this method, see the Reset method in CIM_Processor.

SetPowerState

Not implemented. For more information about how to implement this method, see the SetPowerState method in CIM_Processor.

 

Properties

The Win32_Processor class has these properties.

AddressWidth
Data type: uint16
Access type: Read-only

On a 32-bit operating system, the value is 32 and on a 64-bit operating system it is 64. This property is inherited from CIM_Processor.

Architecture
Data type: uint16
Access type: Read-only

Processor architecture used by the platform.

ValueMeaning
0 (0x0)

x86

1 (0x1)

MIPS

2 (0x2)

Alpha

3 (0x3)

PowerPC

5 (0x5)

ARM

6 (0x6)

Itanium-based systems

9 (0x9)

x64

 

Availability
Data type: uint16
Access type: Read-only

Availability and status of the device. Inherited from CIM_LogicalDevice.

ValueMeaning
1 (0x1)

Other

2 (0x2)

Unknown

3 (0x3)

Running or Full Power

4 (0x4)

Warning

5 (0x5)

In Test

6 (0x6)

Not Applicable

7 (0x7)

Power Off

8 (0x8)

Off Line

9 (0x9)

Off Duty

10 (0xA)

Degraded

11 (0xB)

Not Installed

12 (0xC)

Install Error

13 (0xD)

Power Save - Unknown

The device is known to be in a power save state, but its exact status is unknown.

14 (0xE)

Power Save - Low Power Mode

The device is in a power save state, but is still functioning, and may exhibit decreased performance.

15 (0xF)

Power Save - Standby

The device is not functioning, but can be brought to full power quickly.

16 (0x10)

Power Cycle

17 (0x11)

Power Save - Warning

The device is in a warning state, though also in a power save state.

 

Caption
Data type: string
Access type: Read-only

Qualifier: MaxLen(64)

Short description of an object (a one-line string). This property is inherited from CIM_ManagedSystemElement.

ConfigManagerErrorCode
Data type: uint32
Access type: Read-only

Windows API Configuration Manager error code.

ValueMeaning
0 (0x0)

Device is working properly.

1 (0x1)

Device is not configured correctly.

2 (0x2)

Windows cannot load the driver for this device.

3 (0x3)

Driver for this device might be corrupted or the system may be low on memory or other resources.

4 (0x4)

Device is not working properly. One of its drivers or the registry might be corrupted.

5 (0x5)

Driver for the device requires a resource that Windows cannot manage.

6 (0x6)

Boot configuration for the device conflicts with other devices.

7 (0x7)

Cannot filter.

8 (0x8)

Driver loader for the device is missing.

9 (0x9)

Device is not working properly. The controlling firmware is incorrectly reporting the resources for the device.

10 (0xA)

Device cannot start.

11 (0xB)

Device failed.

12 (0xC)

Device cannot find enough free resources to use.

13 (0xD)

Windows cannot verify the device's resources.

14 (0xE)

Device cannot work properly until the computer is restarted.

15 (0xF)

Device is not working properly due to a possible re-enumeration problem.

16 (0x10)

Windows cannot identify all of the resources that the device uses.

17 (0x11)

Device is requesting an unknown resource type.

18 (0x12)

Device drivers must be reinstalled.

19 (0x13)

Failure using the VxD loader.

20 (0x14)

Registry might be corrupted.

21 (0x15)

System failure. If changing the device driver is ineffective, see the hardware documentation. Windows is removing the device.

22 (0x16)

Device is disabled.

23 (0x17)

System failure. If changing the device driver is ineffective, see the hardware documentation.

24 (0x18)

Device is not present, not working properly, or does not have all of its drivers installed.

25 (0x19)

Windows is still setting up the device.

26 (0x1A)

Windows is still setting up the device.

27 (0x1B)

Device does not have valid log configuration.

28 (0x1C)

Device drivers are not installed.

29 (0x1D)

Device is disabled. The device firmware did not provide the required resources.

30 (0x1E)

Device is using an IRQ resource that another device is using.

31 (0x1F)

Device is not working properly. Windows cannot load the required device drivers.

 

ConfigManagerUserConfig
Data type: boolean
Access type: Read-only

If TRUE, the device is using a configuration that the user defines. This property is inherited from CIM_LogicalDevice.

CpuStatus
Data type: uint16
Access type: Read-only

Current status of the processor. Status changes indicate processor usage, but not the physical condition of the processor.

ValueMeaning
0 (0x0)

Unknown

1 (0x1)

CPU Enabled

2 (0x2)

CPU Disabled by User via BIOS Setup

3 (0x3)

CPU Disabled by BIOS (POST Error)

4 (0x4)

CPU Is Idle

5 (0x5)

Reserved

6 (0x6)

Reserved

7 (0x7)

Other

 

CreationClassName
Data type: string
Access type: Read-only
Qualifiers: Key, MaxLen (256)

Name of the first concrete class that appears in the inheritance chain used to create an instance. When used with the other key properties of the class, the property allows all instances of this class and its subclasses to be identified uniquely. This property is inherited from CIM_LogicalDevice.

CurrentClockSpeed
Data type: uint32
Access type: Read-only
Qualifiers: Units (MegaHertz)

Current speed of the processor, in MHz. This property is inherited from CIM_Processor.

CurrentVoltage
Data type: uint16
Access type: Read-only
Qualifiers: Units (tenth-Volts)

Voltage of the processor. If the eighth bit is set, bits 0-6 contain the voltage multiplied by 10. If the eighth bit is not set, then the bit setting in VoltageCaps represents the voltage value. CurrentVoltage is only set when SMBIOS designates a voltage value.

Example: Value for a processor voltage of 1.8 volts is 0x12 (1.8 x 10).

DataWidth
Data type: uint16
Access type: Read-only

On a 32-bit processor, the value is 32 and on a 64-bit processor it is 64. This property is inherited from CIM_Processor.

Description
Data type: string
Access type: Read-only

Description of the object. This property is inherited from CIM_ManagedSystemElement.

DeviceID
Data type: string
Access type: Read-only
Qualifiers: Key

Unique identifier of a processor on the system. This property is inherited from CIM_LogicalDevice.

ErrorCleared
Data type: boolean
Access type: Read-only

If TRUE, the error reported in LastErrorCode is clear. This property is inherited from CIM_LogicalDevice.

ErrorDescription
Data type: string
Access type: Read-only

More information about the error recorded in LastErrorCode, and information about corrective actions that can be taken. This property is inherited from CIM_LogicalDevice.

ExtClock
Data type: uint32
Access type: Read-only
Qualifiers: Units (MegaHertz)

External clock frequency, in MHz. If the frequency is unknown, this property is set to NULL.

Family
Data type: uint16
Access type: Read-only

Processor family type. This property is inherited from CIM_Processor.

ValueMeaning
1 (0x1)

Other

2 (0x2)

Unknown

3 (0x3)

8086

4 (0x4)

80286

5 (0x5)

Intel386™ Processor

6 (0x6)

Intel486™ Processor

7 (0x7)

8087

8 (0x8)

80287

9 (0x9)

80387

10 (0xA)

80487

11 (0xB)

Pentium Brand

12 (0xC)

Pentium Pro

13 (0xD)

Pentium II

14 (0xE)

Pentium Processor with MMX™ Technology

15 (0xF)

Celeron™

16 (0x10)

Pentium II Xeon™

17 (0x11)

Pentium III

18 (0x12)

M1 Family

19 (0x13)

M2 Family

24 (0x18)

AMD Duron™ Processor Family

25 (0x19)

K5 Family

26 (0x1A)

K6 Family

27 (0x1B)

K6-2

28 (0x1C)

K6-3

29 (0x1D)

AMD Athlon™ Processor Family

30 (0x1E)

AMD2900 Family

31 (0x1F)

K6-2+

32 (0x20)

Power PC Family

33 (0x21)

Power PC 601

34 (0x22)

Power PC 603

35 (0x23)

Power PC 603+

36 (0x24)

Power PC 604

37 (0x25)

Power PC 620

38 (0x26)

Power PC X704

39 (0x27)

Power PC 750

48 (0x30)

Alpha Family

49 (0x31)

Alpha 21064

50 (0x32)

Alpha 21066

51 (0x33)

Alpha 21164

52 (0x34)

Alpha 21164PC

53 (0x35)

Alpha 21164a

54 (0x36)

Alpha 21264

55 (0x37)

Alpha 21364

64 (0x40)

MIPS Family

65 (0x41)

MIPS R4000

66 (0x42)

MIPS R4200

67 (0x43)

MIPS R4400

68 (0x44)

MIPS R4600

69 (0x45)

MIPS R10000

80 (0x50)

SPARC Family

81 (0x51)

SuperSPARC

82 (0x52)

microSPARC II

83 (0x53)

microSPARC IIep

84 (0x54)

UltraSPARC

85 (0x55)

UltraSPARC II

86 (0x56)

UltraSPARC IIi

87 (0x57)

UltraSPARC III

88 (0x58)

UltraSPARC IIIi

96 (0x60)

68040

97 (0x61)

68xxx Family

98 (0x62)

68000

99 (0x63)

68010

100 (0x64)

68020

101 (0x65)

68030

112 (0x70)

Hobbit Family

120 (0x78)

Crusoe™ TM5000 Family

121 (0x79)

Crusoe™ TM3000 Family

122 (0x7A)

Efficeon™ TM8000 Family

128 (0x80)

Weitek

130 (0x82)

Itanium™ Processor

131 (0x83)

AMD Athlon™ 64 Processor Family

132 (0x84)

AMD Opteron™ Processor Family

144 (0x90)

PA-RISC Family

145 (0x91)

PA-RISC 8500

146 (0x92)

PA-RISC 8000

147 (0x93)

PA-RISC 7300LC

148 (0x94)

PA-RISC 7200

149 (0x95)

PA-RISC 7100LC

150 (0x96)

PA-RISC 7100

160 (0xA0)

V30 Family

176 (0xB0)

Pentium III Xeon™ Processor

177 (0xB1)

Pentium III Processor with Intel SpeedStep™ Technology

178 (0xB2)

Pentium 4

179 (0xB3)

Intel Xeon™

180 (0xB4)

AS400 Family

181 (0xB5)

Intel Xeon™ Processor MP

182 (0xB6)

AMD Athlon™ XP Family

183 (0xB7)

AMD Athlon™ MP Family

184 (0xB8)

Intel Itanium 2

185 (0xB9)

Intel Pentium M Processor

190 (0xBE)

K7

198 (0xC6)

Intel Core™ i7-2760QM

200 (0xC8)

IBM390 Family

201 (0xC9)

G4

202 (0xCA)

G5

203 (0xCB)

G6

204 (0xCC)

z/Architecture Base

250 (0xFA)

i860

251 (0xFB)

i960

260 (0x104)

SH-3

261 (0x105)

SH-4

280 (0x118)

ARM

281 (0x119)

StrongARM

300 (0x12C)

6x86

301 (0x12D)

MediaGX

302 (0x12E)

MII

320 (0x140)

WinChip

350 (0x15E)

DSP

500 (0x1F4)

Video Processor

 

InstallDate
Data type: datetime
Access type: Read-only

Date and time the object is installed. This property does not require a value to indicate that the object is installed. This property is inherited from CIM_ManagedSystemElement.

L2CacheSize
Data type: uint32
Access type: Read-only
Qualifiers: Units (Kilobytes)

Size of the Level 2 processor cache. A Level 2 cache is an external memory area that has a faster access time than the main RAM memory.

L2CacheSpeed
Data type: uint32
Access type: Read-only
Qualifiers: Units (MegaHertz)

Clock speed of the Level 2 processor cache. A Level 2 cache is an external memory area that has a faster access time than the main RAM memory.

L3CacheSize
Data type: uint32
Access type: Read-only
Qualifiers: Units (Kilobytes)

Size of the Level 3 processor cache. A Level 3 cache is an external memory area that has a faster access time than the main RAM memory.

Windows Server 2003:  This property is not available.

L3CacheSpeed
Data type: uint32
Access type: Read-only
Qualifiers: Units (MegaHertz)

Clockspeed of the Level 3 property cache. A Level 3 cache is an external memory area that has a faster access time than the main RAM memory.

Windows Server 2003:  This property is not available.

LastErrorCode
Data type: uint32
Access type: Read-only

Last error code reported by the logical device. This property is inherited from CIM_LogicalDevice.

Level
Data type: uint16
Access type: Read-only

Definition of the processor type. The value depends on the architecture of the processor.

LoadPercentage
Data type: uint16
Access type: Read-only
Qualifiers: Units (Percent)

Load capacity of each processor, averaged to the last second. Processor loading refers to the total computing burden for each processor at one time. This property is inherited from CIM_Processor.

Manufacturer
Data type: string
Access type: Read-only

Name of the processor manufacturer.

Example: A. Datum Corporation

MaxClockSpeed
Data type: uint32
Access type: Read-only
Qualifiers: Units (MegaHertz)

Maximum speed of the processor, in MHz. This property is inherited from CIM_Processor.

Name
Data type: string
Access type: Read-only

Label by which the object is known. When this property is a subclass, it can be overridden to be a key property. This property is inherited from CIM_ManagedSystemElement.

NumberOfCores
Data type: uint32
Access type: Read-only

Number of cores for the current instance of the processor. A core is a physical processor on the integrated circuit. For example, in a dual-core processor this property has a value of 2. For more information, see Remarks.

Windows Server 2003:  This property is not available.

NumberOfLogicalProcessors
Data type: uint32
Access type: Read-only

Number of logical processors for the current instance of the processor. For processors capable of hyperthreading, this value includes only the processors which have hyperthreading enabled. For more information, see Remarks.

Windows Server 2003:  This property is not available.

OtherFamilyDescription
Data type: string
Access type: Read-only
Qualifiers: MaxLen (64)

Processor family type. Used when the Family property is set to 1, which means Other. This string should be set to NULL when the Family property is a value that is not 1. This property is inherited from CIM_Processor.

PNPDeviceID
Data type: string
Access type: Read-only

Windows Plug and Play device identifier of the logical device. This property is inherited from CIM_LogicalDevice.

Example: *PNP030b

PowerManagementCapabilities
Data type: uint16 array
Access type: Read-only

Array of the specific power-related capabilities of a logical device. This property is inherited from CIM_LogicalDevice.

ValueMeaning
0 (0x0)

Unknown

1 (0x1)

Not Supported

2 (0x2)

Disabled

3 (0x3)

Enabled

The power management features are currently enabled but the exact feature set is unknown or the information is unavailable.

4 (0x4)

Power Saving Modes Entered Automatically

The device can change its power state based on usage or other criteria.

5 (0x5)

Power State Settable

The SetPowerState method is supported. This method is found on the parent CIM_LogicalDevice class and can be implemented. For more information, see Designing Managed Object Format (MOF) Classes.

6 (0x6)

Power Cycling Supported

The SetPowerState method can be invoked with the PowerState parameter set to 5 (Power Cycle).

7 (0x7)

Timed Power-On Supported

The SetPowerState method can be invoked with the PowerState parameter set to 5 (Power Cycle) and Time set to a specific date and time, or interval, for power-on.

 

PowerManagementSupported
Data type: boolean
Access type: Read-only

If TRUE, the power of the device can be managed, which means that it can be put into suspend mode, and so on. The property does not indicate that power management features are enabled, but it does indicate that the logical device power can be managed. This property is inherited from CIM_LogicalDevice.

ProcessorId
Data type: string
Access type: Read-only

Processor information that describes the processor features. For an x86 class CPU, the field format depends on the processor support of the CPUID instruction. If the instruction is supported, the property contains 2 (two) DWORD formatted values. The first is an offset of 08h-0Bh, which is the EAX value that a CPUID instruction returns with input EAX set to 1. The second is an offset of 0Ch-0Fh, which is the EDX value that the instruction returns. Only the first two bytes of the property are significant and contain the contents of the DX register at CPU reset—all others are set to 0 (zero), and the contents are in DWORD format.

ProcessorType
Data type: uint16
Access type: Read-only

Primary function of the processor.

ValueMeaning
1 (0x1)

Other

2 (0x2)

Unknown

3 (0x3)

Central Processor

4 (0x4)

Math Processor

5 (0x5)

DSP Processor

6 (0x6)

Video Processor

 

Revision
Data type: uint16
Access type: Read-only

System revision level that depends on the architecture. The system revision level contains the same values as the Version property, but in a numerical format.

Role
Data type: string
Access type: Read-only

Role of the processor. This property is inherited from CIM_Processor.

Examples: Central Processor or Math Processor

SocketDesignation
Data type: string
Access type: Read-only

Type of chip socket used on the circuit.

Example: J202

Status
Data type: string
Access type: Read-only
Qualifiers: MaxLen (10)

Current status of an object. This property is inherited from CIM_ManagedSystemElement.

The values are:

"OK"
"Error"
"Degraded"
"Unknown"
"Pred Fail"
"Starting"
"Stopping"
"Service"
"Stressed"
"NonRecover"
"NoContact"
"LostComm"
StatusInfo
Data type: uint16
Access type: Read-only

State of the logical device. If this property does not apply to the logical device, use the value 5, which means Not Applicable. This property is inherited from CIM_LogicalDevice.

ValueMeaning
1 (0x1)

Other

2 (0x2)

Unknown

3 (0x3)

Enabled

4 (0x4)

Disabled

5 (0x5)

Not Applicable

 

Stepping
Data type: string
Access type: Read-only

Revision level of the processor in the processor family. This property is inherited from CIM_Processor.

SystemCreationClassName
Data type: string
Access type: Read-only

Value of the CreationClassName property for the scoping computer. This property is inherited from CIM_LogicalDevice.

SystemName
Data type: string
Access type: Read-only

Name of the scoping system. This property is inherited from CIM_LogicalDevice.

UniqueId
Data type: string
Access type: Read-only

Globally unique identifier for the processor. This identifier may only be unique within a processor family. This property is inherited from CIM_Processor.

UpgradeMethod
Data type: uint16
Access type: Read-only

CPU socket information, including the method by which this processor can be upgraded, if upgrades are supported. This property is an integer enumeration. This property is inherited from CIM_Processor.

ValueMeaning
1 (0x1)

Other

2 (0x2)

Unknown

3 (0x3)

Daughter Board

4 (0x4)

ZIF Socket

5 (0x5)

Replacement or Piggy Back

6 (0x6)

None

7 (0x7)

LIF Socket

8 (0x8)

Slot 1

9 (0x9)

Slot 2

10 (0xA)

370 Pin Socket

11 (0xB)

Slot A

12 (0xC)

Slot M

13 (0xD)

Socket 423

14 (0xE)

Socket A (Socket 462)

15 (0xF)

Socket 478

16 (0x10)

Socket 754

17 (0x11)

Socket 940

18 (0x12)

Socket 939

 

Version
Data type: string
Access type: Read-only

Processor revision number that depends on the architecture.

Example: Model 2, Stepping 12

VoltageCaps
Data type: uint32
Access type: Read-only
Qualifiers: Units (Volts)

Voltage capabilities of the processor. Bits 0-3 of the field represent specific voltages that the processor socket can accept. All other bits should be set to 0 (zero). The socket is configurable if multiple bits are set. For more information about the actual voltage at which the processor is running, see CurrentVoltage. If the property is NULL, then the voltage capabilities are unknown.

ValueMeaning
1 (0x1)

5 volts

2 (0x2)

3.3 volts

4 (0x4)

2.9 volts

 

Remarks

On a multiprocessor computer, one instance of the Win32_Processor class exists for each processor.

To determine the total number of processor instances associated with a computer system object, use the Win32_ComputerSystemProcessor association class.

To determine if hyperthreading is enabled for the processor, compare NumberOfLogicalProcessors and NumberOfCores. If hyperthreading is enabled in the BIOS for the processor, then NumberOfCores is less than NumberOfLogicalProcessors. For example, a dual-processor system that contains two processors enabled for hyperthreading can run four threads or programs or simultaneously. In this case, NumberOfCores is 2 and NumberOfLogicalProcessors is 4.

The Win32_Processor class is derived from CIM_Processor.

Examples

The WMI Information Retriever VBScript code example on the TechNet Gallery uses the Win32_ComputerSystemProcessor class to retrieve processor information from a number of remote computers.

The Get-ComputerInfo - Query Computer Info From Local/Remote Computers - (WMI) PowerShell sample on TechNet Gallery uses a number of calls to hardware and software, including Win32_ComputerSystemProcessor, to display information about a local or remote system.

The Multithreaded System Asset Gathering with Powershell PowerShell example on TechNet gallery uses a number of classes, including Win32_ComputerSystemProcessor, to retrieve data from a system.

The following VBScript code example retrieves data about the operating system version and the processor it is running on from Win32_Processor, Win32_ComputerSystem, and Win32_OperatingSystem. This example requires Windows Vista or later.




strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
 & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")


Set colOSes = objWMIService.ExecQuery("Select * from Win32_OperatingSystem")
For Each objOS in colOSes
  Wscript.Echo "Computer Name: " & objOS.CSName

  Wscript.Echo "Operating System"
  Wscript.Echo "  Caption: " & objOS.Caption 'Name
  Wscript.Echo "  Version: " & objOS.Version 'Version & build
  Wscript.Echo "  BuildNumber: " & objOS.BuildNumber 'Build
  Wscript.Echo "  BuildType: " & objOS.BuildType
  Wscript.Echo "  OSProductSuite: " & objOS.OSProductsuite 'OS Product suite
  Wscript.Echo "  OSArchitecture: " & objOS.OSArchitecture
  Wscript.Echo "  OSType: " & objOS.OSType
  Wscript.Echo "  OtherTypeDescription: (2003 Server R2 release only)" & objOS.OtherTypeDescription
  WScript.Echo "  ServicePackMajorVersion: " & objOS.ServicePackMajorVersion & "." & _
   objOS.ServicePackMinorVersion

Next

Wscript.Echo "Processors"

Set colCompSys = objWMIService.ExecQuery("Select * from Win32_ComputerSystem")
For Each objCS in colCompSys
  WScript.Echo "  NumberOfProcessors: " & objCS.NumberOfProcessors
  WScript.Echo "  NumberOfLogicalProcessors: " & objCS.NumberOfLogicalProcessors
  WScript.Echo "  PCSystemType: " & objCS.PCSystemType
Next

Set colProcessors = objWMIService.ExecQuery("Select * from Win32_Processor")
For Each objProcessor in colProcessors
  WScript.Echo "  Manufacturer: " & objProcessor.Manufacturer
  WScript.Echo "  Name: " & objProcessor.Name
  WScript.Echo "  Description: " & objProcessor.Description
  WScript.Echo "  ProcessorID: " & objProcessor.ProcessorID
  WScript.Echo "  Architecture: " & objProcessor.Architecture
  WScript.Echo "  AddressWidth: " & objProcessor.AddressWidth
  WScript.Echo "  NumberOfCores: " & objProcessor.NumberOfCores
  WScript.Echo "  DataWidth: " & objProcessor.DataWidth
  WScript.Echo "  Family: " & objProcessor.Family
  WScript.Echo "  MaximumClockSpeed: " & objProcessor.MaxClockSpeed
Next

The following VBScript code example shows how to use Win32_Processor to determine the computer architecture.


Set objProc = GetObject("winmgmts:root\cimv2:Win32_Processor='cpu0'")

If objProc.Architecture = 0 Then
    WScript.Echo "x86"
ElseIf objProc.Architecture = 6 Then
    WScript.Echo "Itanium"
Else
    WScript.Echo "Unknown"
End If

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

CIMWin32.mof

DLL

CIMWin32.dll

See also

Computer System Hardware Classes
WMI Tasks: Computer Hardware

 

 

Show:
© 2014 Microsoft