## هتلاقى ملفات السكريبتات فى قسم المثبت على جروب التليجرام #

https://t.me/+ZFNoZ5X2LTA3Yjg0

ساعد فى نشر هذا المحتوى لتعم الفائدة على الجميع - شير فى الخير
WMI GPO Filters for Operating System Types
As a standard practice in the environment I support we use WMI filtering on GPOs to ensure a GPO only gets applied to the right operating system type. This can prevent accidents such as applying a client GPO to a server, or a GPO for Server 2003 to a Server 2008 R2 system.

Creating WMI filters can be a pain, so here are the WMI queries that I use which cover a variety of operating systems.
Windows XP
select * from Win32_OperatingSystem where Version like "5.1%"

Windows 7
select * from Win32_OperatingSystem where Version like "6.1%" and ProductType = "1"

Windows 8
select * from Win32_OperatingSystem where Version like "6.2%" and ProductType = "1"

Windows 8.1
select * from Win32_OperatingSystem WHERE Version like "6.3%" AND ProductType="1"

Windows 8.1 – 32-bit
select * from Win32_OperatingSystem WHERE Version like "6.3%" AND ProductType="1" AND NOT OSArchitecture = "64-bit"

Windows 8.1 – 64-bit
select * from Win32_OperatingSystem WHERE Version like "6.3%" AND ProductType="1" AND OSArchitecture = "64-bit"

Windows Server 2003 R2
select * from Win32_OperatingSystem where Version like "5.2%"

Windows Server 2008
select * from Win32_OperatingSystem where Version like "6.0%" AND ( ProductType = "2" or ProductType = "3" )

Windows Server 2008 R2
select * from Win32_OperatingSystem where Version like "6.1%" AND ( ProductType = "2" or ProductType = "3" )

Windows Server 2012
select * from Win32_OperatingSystem where Version like "6.2%" AND ( ProductType = "2" or ProductType = "3" )

Windows Server 2012 R2 – 64-bit DC
select * from Win32_OperatingSystem WHERE Version like "6.3%" AND ProductType="2"

Windows Server 2012 R2 – 64-bit NON DC
select * from Win32_OperatingSystem WHERE Version like "6.3%" AND ProductType="3

Windows Server 2019

Select * from Win32_OperatingSystem where Version like "10.0.17763"

Select * from Win32_OperatingSystem where BuildNumber = 17763