Announcement

Collapse
No announcement yet.

Windows 8 WMI filter

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Windows 8 WMI filter

    Does this look right for a windows 8 WMI filter?

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

  • #2
    Re: Windows 8 WMI filter

    Yes.

    The WQL (WMI Query Language) string should return TRUE when applied to the correct version of Windows.

    Both Windows Server 2012 and Windows 8 return version numbers that begin with 6.2. To differentiate between the client and server versions, include the clause to check the ProductType field. This value returns 1 for client versions of Windows such as Windows 8, 2 for server versions of Windows operating as domain controllers, and 3 for server versions of Windows that are not operating as domain controllers. [http://technet.microsoft.com/en-us/library/jj899801.aspx]

    /Rems

    This posting is provided "AS IS" with no warranties, and confers no rights.

    __________________

    ** Remember to give credit where credit's due **
    and leave Reputation Points for meaningful posts

    Comment


    • #3
      Re: Windows 8 WMI filter

      So to create two additional WMI filters for Server 2012 member servers and 2012 domain controllers I just need to change that product type number value?

      Comment


      • #4
        Re: Windows 8 WMI filter

        Correct.

        Code:
        Win32_OperatingSystem class
        
        Property name: ProductType
        Data type: uint32 Access type: Read-only Value Meaning -------------------------- 1 Work Station 2 Domain Controller 3 Server
        /Rems

        This posting is provided "AS IS" with no warranties, and confers no rights.

        __________________

        ** Remember to give credit where credit's due **
        and leave Reputation Points for meaningful posts

        Comment

        Working...
        X