Forum Discussion
WMI filter for Windows 10 Enterprise
- Feb 11, 2021
SimonEE I find WMI Explorer really useful when writing WMI filters: GitHub - vinaypamnani/wmie2
You'll want to target ROOT\cimv2 on the filter and this should do the job:
select * from Win32_OperatingSystem where Caption = "Microsoft Windows 10 Enterprise"
Alternatively you can target the Version and OperatingSystemSKU properties:
select * from Win32_OperatingSystem where Version like "10.%" AND OperatingSystemSKU = 27
(I'm taking "27" from a list of OperatingSystemSKU values off Microsoft Docs but I'd look it up in WMI Explorer to double check, or using PowerShell on a system running Win 10 Enterprise:
get-wmiobject -query "SELECT OperatingSystemSKU from Win32_OperatingSystem"
and look at the value it returns.)
SimonEE I find WMI Explorer really useful when writing WMI filters: GitHub - vinaypamnani/wmie2
You'll want to target ROOT\cimv2 on the filter and this should do the job:
select * from Win32_OperatingSystem where Caption = "Microsoft Windows 10 Enterprise"
Alternatively you can target the Version and OperatingSystemSKU properties:
select * from Win32_OperatingSystem where Version like "10.%" AND OperatingSystemSKU = 27
(I'm taking "27" from a list of OperatingSystemSKU values off Microsoft Docs but I'd look it up in WMI Explorer to double check, or using PowerShell on a system running Win 10 Enterprise:
get-wmiobject -query "SELECT OperatingSystemSKU from Win32_OperatingSystem"
and look at the value it returns.)