Jaan Posted January 17, 2024 Posted January 17, 2024 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
Popular Post Jaan Posted January 17, 2024 Author Popular Post Posted January 17, 2024 Managed to find this which seems to work for me. Might be useful for others https://www.dannymoran.com/wmi-filter-cheat-sheet/ 5
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now