For further differentiating between machine types on a Windows network, the following WMI filters go beyond just Windows versioning and allow the administrator to drill down with a finer degree of granularity. These are samples to exhibit and inspire other types of queries that can be created.
Computer Strings & Metrics
Determine if Machine is a Portable / Laptop
1 | SELECT * FROM Win32_Battery |
Query Screen Resolution is at Least a Certain Size (1280×7200
1 | SELECT * FROM Win32_DisplayControllerConfiguration WHERE HorizontalResolution>1279 AND VerticalResolution>719 |
Query System’s Current Power Source: rootWMI
1 | SELECT * FROM BatteryStatus WHERE Discharging = TRUE |
Machine has at Least 4GB RAM Memory
1 | SELECT * FROM Win32_ComputerSystem WHERE TotalPhysicalMemory > 4000000000 |
Drive F: Contains at Least 200GB Free Space
1 | SELECT * FROM Win32_LogicalDisk WHERE FreeSpace > 200000000000 AND Caption = "F:" |
Machine is Running an Intel Chip
1 | SELECT * FROM Win32_Processor WHERE Manufacturer = "GenuineIntel" |
Machine has at Least 2 Cpus
1 | SELECT * FROM Win32_ComputerSystem WHERE NumberOfLogicalProcessors > 2 |
Machine has more than 1 CPU
1 | SELECT * FROM Win32_ComputerSystem WHERE NumberOfProcessors > 1 |
Computer is a Lenovo x270
1 | SELECT * FROM Win32_ComputerSystem WHERE manufacturer = "Lenovo" AND Model = "x270*" |
Comments