INFORMATICS

The Best

Przełącznik języka

This Site

Płatnik

CMS

Hardware

Uncategorised

Emulators

Powershell

Storage Array

DNS

Antivirus program

Licznik

2.png3.png6.png7.png8.png6.png9.png
Today163
Yesterday560
This week5310
This month18039
Total2367869

Visitor Info

  • IP: 34.204.174.110
  • Browser: Unknown
  • Browser Version:
  • Operating System: Unknown

Who Is Online

5
Online

niedziela, 29 maj 2022 09:55

Create WMI Filters for operations systems

Gwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywna
 

Create WMI Filters for operations systems
To create the WMI filtersI

in Server Manager, click Tools, and then click Group Policy Management.

The Group Policy Management Console (GPMC) opens.

    In the GPMC navigation pane, expand Features, expand Group Policy Management, expand Forest: your forest name, expand Domains, expand your domain, and then click WMI Filters.

    Click Action, and then click New.

    In the New WMI Filter dialog box, in Name, type the name of the filter. Use a name that indicates the target group (for example, Windows Server 2012).

    In Description, type the purpose of the filter.

    Click Add.

    The WMI Query dialog box appears.

    In Query, type the WMI Query Language (WQL) string that returns TRUE when applied to the correct version of Windows. For example, for Windows Server 2012 type:

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

    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.

    Repeat step 8 for each of the other versions of Windows. The following table shows sample query statements for each version.

 

WMI Filter Name WQL Query Statement
Windows Server 2012 select * from Win32_OperatingSystem where Version like "6.2%" and ProductType = "3"
Windows 8 select * from Win32_OperatingSystem where Version like "6.2%" and ProductType = "1"
Windows Server 2008 R2 select * from Win32_OperatingSystem where Version like "6.1%" and ProductType = "3"
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 = "3"
Windows Vista select * from Win32_OperatingSystem where Version like "6.0%" and ProductType = "1"
Windows Server 2003 select * from Win32_OperatingSystem where Version like "5.2%" and ProductType = "3"
Windows XP select * from Win32_OperatingSystem where (Version like "5.1%" or Version like "5.2%") and ProductType = "1"

 

       

Search