WMI Filters for Group Policy Objects

Windows XP

select * from Win32_OperatingSystem where Version like "5.1%"
and ProductType = "1"

Windows Server 2003/R2

select * from Win32_OperatingSystem WHERE Version LIKE "5.2%"

Any OS prior to Vista

select * from Win32_OperatingSystem where Version < "6"

Windows 7

select * from Win32_OperatingSystem WHERE Version LIKE "6.1%"
and ProductType = "1"

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" )

No related posts.

This entry was posted in Group Policy, microsoft. Bookmark the permalink.
FacebookTwitterLinkedInDeliciousRSS Feed

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>