Answered by:
WMI Filter for 2019

Question
-
Can someone help me to get OS verion of Windows Server 2019 or WMI filter command to config in GPO and let me know the below command will work or not.
"SELECT * FROM Win32_OperatingSystem WHERE Caption LIKE “%Windows Server 2019%” "Tuesday, January 21, 2020 5:33 AM
Answers
-
Hi,
You can follow the official documentation over here: Create WMI Filters for the GPO
The WMI queries
For Windows Server 2019 run the following WMI query:
Select * from Win32_OperatingSystem where Version like "10.0.17763"
or
Select * from Win32_OperatingSystem where BuildNumber = 17763
Here are the build versions:
- 10240 = Windows 10 Version 1507
- 10586 = Windows 10 Version 1511
- 14393 = Windows 10 Version 1607 and Windows Server 2016
- 15063 = Windows 10 Version 1703
- 16299 = Windows 10 Version 1709
- 17134 = Windows 10 Version 1803
- 17763 = Windows 10 Version 1809 and Windows Server 2019
Best regards,
LeonBlog:
https://thesystemcenterblog.com LinkedIn:
- Marked as answer by Partha1012 Thursday, February 20, 2020 12:23 PM
Tuesday, January 21, 2020 8:36 AM
All replies
-
It should as below,
SELECT Version FROM Win32_OperatingSystem WHERE Version = “10.0.17763” AND ProductType<>”1″
Please refer below for more,
https://teamengr.com/2019/08/28/windows-server-2016-versus-2019-wmi-filtering/
http://woshub.com/group-policy-filtering-using-wmi-filters/
Here is a WMI-Filter that specifically targets Windows Server 2019 Domain Controllers only:
Select BuildNumber from Win32_OperatingSystem WHERE BuildNumber = 17763 AND BuildNumber LIKE "%[123456789][0123456789][0123456789][0123456789][0123456789]%" AND ProductType="2"
Tuesday, January 21, 2020 8:22 AM -
Hi,
You can follow the official documentation over here: Create WMI Filters for the GPO
The WMI queries
For Windows Server 2019 run the following WMI query:
Select * from Win32_OperatingSystem where Version like "10.0.17763"
or
Select * from Win32_OperatingSystem where BuildNumber = 17763
Here are the build versions:
- 10240 = Windows 10 Version 1507
- 10586 = Windows 10 Version 1511
- 14393 = Windows 10 Version 1607 and Windows Server 2016
- 15063 = Windows 10 Version 1703
- 16299 = Windows 10 Version 1709
- 17134 = Windows 10 Version 1803
- 17763 = Windows 10 Version 1809 and Windows Server 2019
Best regards,
LeonBlog:
https://thesystemcenterblog.com LinkedIn:
- Marked as answer by Partha1012 Thursday, February 20, 2020 12:23 PM
Tuesday, January 21, 2020 8:36 AM -
Hello,
Thank you for posting in our forum.
Here are some articles about WMI filter string that I hope will help you:
1.Windows: Sample WMI Filter Strings
2.Fun with WMI Filters in Group Policy
Hope the information can be helpful and if there is anything else we can do for you, please feel free to post in the forum.
Best regards,
CynthiaPlease remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.- Proposed as answer by cynthfanMicrosoft contingent staff Monday, February 10, 2020 1:42 PM
Wednesday, January 22, 2020 8:31 AM -
Hi,
Just checking in to see if the information provided was helpful. Please let us know if you would like further assistance.
Best Regards,
Cynthia
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.Tuesday, January 28, 2020 8:08 AM -
Hi,
Just want to confirm the current situations.
Please feel free to let us know if you need further assistance.
Best Regards,
CynthiaPlease remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.Thursday, January 30, 2020 8:11 AM