Processor - WMI sample in Powershell
The foundations for Manageability in Windows 2019/2012/2008/ and Windows 10/8/7/Vista/XP are Windows Management Instrumentation (WMI; formerly WBEM) and WMI extensions for Windows Driver Model (WDM).
ActiveXperts Network Monitor provides the ability to build monitor check routines based on WMI. ActiveXperts has collected more than a hundred WMI samples. You can use these samples as a base for new check routines you can write yourself.
On this site, you can find many WMI samples.
The Processor WMI class can be used in ActiveXperts Network Monitor to monitor your servers.
Processor
Example(s)
$strComputer = "." $objWMi = get-wmiobject -computername localhost -Query "Select * from CIM_Processor" foreach ($obj in $objWmi) { write-host "AddressWidth:" $obj.AddressWidth write-host "Architecture:" $obj.Architecture write-host "Availability:" $obj.Availability write-host "Caption:" $obj.Caption write-host "ConfigManagerErrorCode:" $obj.ConfigManagerErrorCode write-host "ConfigManagerUserConfig:" $obj.ConfigManagerUserConfig write-host "CpuStatus:" $obj.CpuStatus write-host "CreationClassName:" $obj.CreationClassName write-host "CurrentClockSpeed:" $obj.CurrentClockSpeed write-host "CurrentVoltage:" $obj.CurrentVoltage write-host "DataWidth:" $obj.DataWidth write-host "Description:" $obj.Description write-host "DeviceID:" $obj.DeviceID write-host "ErrorCleared:" $obj.ErrorCleared write-host "ErrorDescription:" $obj.ErrorDescription write-host "ExtClock:" $obj.ExtClock write-host "Family:" $obj.Family write-host "InstallDate:" $obj.InstallDate write-host "L2CacheSize:" $obj.L2CacheSize write-host "L2CacheSpeed:" $obj.L2CacheSpeed write-host "L3CacheSize:" $obj.L3CacheSize write-host "L3CacheSpeed:" $obj.L3CacheSpeed write-host "LastErrorCode:" $obj.LastErrorCode write-host "Level:" $obj.Level write-host "LoadPercentage:" $obj.LoadPercentage write-host "Manufacturer:" $obj.Manufacturer write-host "MaxClockSpeed:" $obj.MaxClockSpeed write-host "Name:" $obj.Name write-host "NumberOfCores:" $obj.NumberOfCores write-host "NumberOfLogicalProcessors:" $obj.NumberOfLogicalProcessors write-host "OtherFamilyDescription:" $obj.OtherFamilyDescription write-host "PNPDeviceID:" $obj.PNPDeviceID write-host "PowerManagementCapabilities:" $obj.PowerManagementCapabilities write-host "PowerManagementSupported:" $obj.PowerManagementSupported write-host "ProcessorId:" $obj.ProcessorId write-host "ProcessorType:" $obj.ProcessorType write-host "Revision:" $obj.Revision write-host "Role:" $obj.Role write-host "SecondLevelAddressTranslationExtensions:" $obj.SecondLevelAddressTranslationExtensions write-host "SocketDesignation:" $obj.SocketDesignation write-host "Status:" $obj.Status write-host "StatusInfo:" $obj.StatusInfo write-host "Stepping:" $obj.Stepping write-host "SystemCreationClassName:" $obj.SystemCreationClassName write-host "SystemName:" $obj.SystemName write-host "UniqueId:" $obj.UniqueId write-host "UpgradeMethod:" $obj.UpgradeMethod write-host "Version:" $obj.Version write-host "VirtualizationFirmwareEnabled:" $obj.VirtualizationFirmwareEnabled write-host "VMMonitorModeExtensions:" $obj.VMMonitorModeExtensions write-host "VoltageCaps:" $obj.VoltageCaps write-host write-host "########" write-host }