All things SMS, System Center Configuration Manager, Active Directory, Group Policy, Virtualization, Security, Gadgets, Technology, and the Daily Thoughts of an SMS Engineer named Anthony Clendenen.

The Daily Ramblings of an SMS Engineer

Vista and Longhorn Filtering with WMI

October 31, 2006

James Senior has a post on his blog “Views on Vista” that details how to build WMI filters for Vista and Server 2007 (Longhorn).

For Vista and Server 2007 essentially you look for OS version >= 6 and for Vista a product type that = 1 and for Server 2007 a product type = 3.  Check out his post below for the exact syntax.

For Vista 

SELECT Version, ProductType

FROM Win32_OperatingSystem

WHERE Version >= '6' AND ProductType = '1'

For Longhorn Server

SELECT Version, ProductType

FROM Win32_OperatingSystem WHERE

Version >= '6' AND ProductType = '3'

 

I created a quick script to show the results (click for larger image):

 

The Daily Ramblings of an SMS Engineer Listen to this article

Comments

  • No Comments