Источники:
http://winitpro.ru/index.php/2012/01/13/filtraciya-gruppovyx-politik-s-pomoshhyu-wmi-filtrov/ https://msdn.microsoft.com/en-us/library/windows/desktop/ms724832(v=vs.85).aspx
Доступные значения для Version like «??»:
Windows 10 — 10.0* Windows Server 2016 — 10.0* Windows Server 2012 R2 и Windows 8.1 — 6.3% Windows Server 2012 и Windows 8 — 6.2% Windows Server 2008 R2 и Windows 7 — 6.1% Windows Server 2008 и Windows Vista — 6.0% Windows Server 2003 — 5.2% Windows XP — 5.1% Windows 2000 — 5.0%
Значения ProductType:
--------------------- Клиент: ProductType=1 --------------------- Контроллер домена: ProductType=2 --------------------- Сервер: ProductType=3 ---------------------
Выбрать все сервера на Windows Server 2008 R2:
select * from Win32_OperatingSystem where Version like “6.1%” and (ProductType = “2″ or ProductType = “3″)
Выбрать все клиенты на Windows Server 8:
select * from Win32_OperatingSystem where Version LIKE "6.2%" and ProductType = "1"
Выбрать все клиенты на Windows Server 7:
select * from Win32_OperatingSystem where Version LIKE "6.1%" and ProductType = "1"
Выбрать все ProductType=1 (клиенты)
select * from Win32_OperatingSystem where ProductType ="1"
Выбрать все машины, на которых установлен Internet Explorer 8:
SELECT path,filename,extension,version FROM CIM_DataFile WHERE path="\\Program Files\\Internet Explorer\\" AND filename="iexplore" AND extension="exe" AND version>"8.0"
Выбрать 32 битные ОС:
Select * from Win32_Processor where AddressWidth = "32"
Выбрать 64 битные ОС:
Select * from Win32_Processor where AddressWidth = "64"
Компьютеры, с количество оперативной памяти на которых больше 1 Гб
Select * from WIN32_ComputerSystem where TotalPhysicalMemory >= 1073741824