ComputerSystem - 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 ComputerSystem WMI class can be used in ActiveXperts Network Monitor to monitor your servers.
ComputerSystem
Example(s)
$strComputer = "." $objWMi = get-wmiobject -computername localhost -Query "Select * from CIM_ComputerSystem" foreach ($obj in $objWmi) { write-host "AdminPasswordStatus:" $obj.AdminPasswordStatus write-host "AutomaticManagedPagefile:" $obj.AutomaticManagedPagefile write-host "AutomaticResetBootOption:" $obj.AutomaticResetBootOption write-host "AutomaticResetCapability:" $obj.AutomaticResetCapability write-host "BootOptionOnLimit:" $obj.BootOptionOnLimit write-host "BootOptionOnWatchDog:" $obj.BootOptionOnWatchDog write-host "BootROMSupported:" $obj.BootROMSupported write-host "BootupState:" $obj.BootupState write-host "Caption:" $obj.Caption write-host "ChassisBootupState:" $obj.ChassisBootupState write-host "CreationClassName:" $obj.CreationClassName write-host "CurrentTimeZone:" $obj.CurrentTimeZone write-host "DaylightInEffect:" $obj.DaylightInEffect write-host "Description:" $obj.Description write-host "DNSHostName:" $obj.DNSHostName write-host "Domain:" $obj.Domain write-host "DomainRole:" $obj.DomainRole write-host "EnableDaylightSavingsTime:" $obj.EnableDaylightSavingsTime write-host "FrontPanelResetStatus:" $obj.FrontPanelResetStatus write-host "HypervisorPresent:" $obj.HypervisorPresent write-host "InfraredSupported:" $obj.InfraredSupported write-host "InitialLoadInfo:" $obj.InitialLoadInfo write-host "InstallDate:" $obj.InstallDate write-host "KeyboardPasswordStatus:" $obj.KeyboardPasswordStatus write-host "LastLoadInfo:" $obj.LastLoadInfo write-host "Manufacturer:" $obj.Manufacturer write-host "Model:" $obj.Model write-host "Name:" $obj.Name write-host "NameFormat:" $obj.NameFormat write-host "NetworkServerModeEnabled:" $obj.NetworkServerModeEnabled write-host "NumberOfLogicalProcessors:" $obj.NumberOfLogicalProcessors write-host "NumberOfProcessors:" $obj.NumberOfProcessors write-host "OEMLogoBitmap:" $obj.OEMLogoBitmap write-host "OEMStringArray:" $obj.OEMStringArray write-host "PartOfDomain:" $obj.PartOfDomain write-host "PauseAfterReset:" $obj.PauseAfterReset write-host "PCSystemType:" $obj.PCSystemType write-host "PowerManagementCapabilities:" $obj.PowerManagementCapabilities write-host "PowerManagementSupported:" $obj.PowerManagementSupported write-host "PowerOnPasswordStatus:" $obj.PowerOnPasswordStatus write-host "PowerState:" $obj.PowerState write-host "PowerSupplyState:" $obj.PowerSupplyState write-host "PrimaryOwnerContact:" $obj.PrimaryOwnerContact write-host "PrimaryOwnerName:" $obj.PrimaryOwnerName write-host "ResetCapability:" $obj.ResetCapability write-host "ResetCount:" $obj.ResetCount write-host "ResetLimit:" $obj.ResetLimit write-host "Roles:" $obj.Roles write-host "Status:" $obj.Status write-host "SupportContactDescription:" $obj.SupportContactDescription write-host "SystemStartupDelay:" $obj.SystemStartupDelay write-host "SystemStartupOptions:" $obj.SystemStartupOptions write-host "SystemStartupSetting:" $obj.SystemStartupSetting write-host "SystemType:" $obj.SystemType write-host "ThermalState:" $obj.ThermalState write-host "TotalPhysicalMemory:" $obj.TotalPhysicalMemory write-host "UserName:" $obj.UserName write-host "WakeUpType:" $obj.WakeUpType write-host "Workgroup:" $obj.Workgroup write-host write-host "########" write-host }