Last Updated on
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
SELECT * FROM Win32_Battery
Query Screen Resolution is at Least a Certain Size (1280×7200
SELECT * FROM Win32_DisplayControllerConfiguration WHERE HorizontalResolution>1279 AND VerticalResolution>719
Query System’s Current Power Source: rootWMI
SELECT * FROM BatteryStatus WHERE Discharging = TRUE
Machine has at Least 4GB RAM Memory
SELECT * FROM Win32_ComputerSystem WHERE TotalPhysicalMemory > 4000000000
Drive F: Contains at Least 200GB Free Space
SELECT * FROM Win32_LogicalDisk WHERE FreeSpace > 200000000000 AND Caption = "F:"
Machine is Running an Intel Chip
SELECT * FROM Win32_Processor WHERE Manufacturer = "GenuineIntel"
Machine has at Least 2 Cpus
SELECT * FROM Win32_ComputerSystem WHERE NumberOfLogicalProcessors > 2
Machine has more than 1 CPU
SELECT * FROM Win32_ComputerSystem WHERE NumberOfProcessors > 1
Computer is a Lenovo x270
SELECT * FROM Win32_ComputerSystem WHERE manufacturer = "Lenovo" AND Model = "x270*"