Jump to content

WMI filters Win10/11 Server 2019/22


Recommended Posts

Posted

Hi all,

 

We've started to look at moving over to Server 2022 and Windows 11.

 

At the moment we're running Windows 10 (1809 LTSC/2021 LTSC) and Server 2019

 

I wanted to ad some WMI filters to aid in testing GPOs and just wanted to ask how others are doing WMI filters.

 

I've never used the "Caption" option before. in the past i've also used something like:

 

SELECT Version FROM Win32_OperatingSystem WHERE Version LIKE “6.0%”

 

Where it queries the windows "version".

 

From what i understand, windows 10 and windows 11 share the same version number (yay MS) so this method won't work.

 

I have the below, but not sure if they would work.

Anybody else using this caption method?

 

Windows 10 WMI

SELECT Version FROM Win32_OperatingSystem where ((Caption like '%10%') and (ProductType='1'))

 

Windows 11 WMI

SELECT Version FROM Win32_OperatingSystem where ((Caption like '%11%') and (ProductType='1'))

 

Server 2019 WMI

SELECT Version FROM Win32_OperatingSystem where ((Caption like '%2019%') and (ProductType='1'))

 

Server 2022 WMI

SELECT Version FROM Win32_OperatingSystem where ((Caption like '%2022%') and (ProductType='1'))

 

Cheers all

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...