Returns information about the processors installed on a computer.

This script was tested using Python 2.2.2-224 for Microsoft Windows, available from ActiveState.

Python
Edit|Remove
import win32com.client
strComputer = "."
objWMIService = win32com.client.Dispatch("WbemScripting.SWbemLocator")
objSWbemServices = objWMIService.ConnectServer(strComputer,"root\cimv2")
colItems = objSWbemServices.ExecQuery("Select * from Win32_Processor")
for objItem in colItems:
    print "Address Width: ", objItem.AddressWidth
    print "Architecture: ", objItem.Architecture
    print "Availability: ", objItem.Availability
    print "Caption: ", objItem.Caption
    print "Config Manager Error Code: ", objItem.ConfigManagerErrorCode
    print "Config Manager User Config: ", objItem.ConfigManagerUserConfig
    print "Cpu Status: ", objItem.CpuStatus
    print "Creation Class Name: ", objItem.CreationClassName
    print "Current Clock Speed: ", objItem.CurrentClockSpeed
    print "Current Voltage: ", objItem.CurrentVoltage
    print "Data Width: ", objItem.DataWidth
    print "Description: ", objItem.Description
    print "Device ID: ", objItem.DeviceID
    print "Error Cleared: ", objItem.ErrorCleared
    print "Error Description: ", objItem.ErrorDescription
    print "Ext Clock: ", objItem.ExtClock
    print "Family: ", objItem.Family
    print "Install Date: ", objItem.InstallDate
    print "L2 Cache Size: ", objItem.L2CacheSize
    print "L2 Cache Speed: ", objItem.L2CacheSpeed
    print "Last Error Code: ", objItem.LastErrorCode
    print "Level: ", objItem.Level
    print "Load Percentage: ", objItem.LoadPercentage
    print "Manufacturer: ", objItem.Manufacturer
    print "Max Clock Speed: ", objItem.MaxClockSpeed
    print "Name: ", objItem.Name
    print "Other Family Description: ", objItem.OtherFamilyDescription
    print "PNP Device ID: ", objItem.PNPDeviceID
    z = objItem.PowerManagementCapabilities
    if z is None:
        a = 1
    else:
        for x in z:
            print "Power Management Capabilities: ", x
    print "Power Management Supported: ", objItem.PowerManagementSupported
    print "Processor Id: ", objItem.ProcessorId
    print "Processor Type: ", objItem.ProcessorType
    print "Revision: ", objItem.Revision
    print "Role: ", objItem.Role
    print "Socket Designation: ", objItem.SocketDesignation
    print "Status: ", objItem.Status
    print "Status Info: ", objItem.StatusInfo
    print "Stepping: ", objItem.Stepping
    print "System Creation Class Name: ", objItem.SystemCreationClassName
    print "System Name: ", objItem.SystemName
    print "Unique Id: ", objItem.UniqueId
    print "Upgrade Method: ", objItem.UpgradeMethod
    print "Version: ", objItem.Version
    print "Voltage Caps: ", objItem.VoltageCaps