INFORMATICS

The Best

Przełącznik języka

Zaproś mnie na KAWE

Jeżeli podoba Ci się strona i chcesz wspomóc projekt!

Postaw mi kawę na buycoffee.to

This Site

Płatnik

CMS

Hardware

Uncategorised

Emulators

Powershell

Storage Array

DNS

Antivirus program

Licznik

3.png0.png6.png8.png8.png4.png8.png
Today646
Yesterday717
This week7850
This month19361
Total3068848

Visitor Info

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

Who Is Online

1
Online

niedziela, 22 grudzień 2024 12:36

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