Scroll Top

Curso Gratuito Microsoft + Certificado Internacional.

>> Para receber o link do curso preencha o campo ao lado.

Active Directory

Como Criar Uma GPO Com WMI Filter

Neste artigo com video tutorial você vai aprender Como Criar Uma GPO Com WMI Filter.

Os Filtros WMI – Windows Management Instrumentation permitem determinar dinamicamente o escopo dos objetos de Diretiva de Grupo (GPO) com base em atributos do computador de destino.

Quando uma GPO que está ligada a um filtro WMI é aplicado no computador de destino, o filtro é avaliado no computador de destino. Se o filtro WMI for avaliado como falso, a GPO não é aplicada (exceto se o computador cliente está executando o Windows 2000, caso em que o filtro é ignorado eo GPO é sempre aplicado). Se o filtro WMI for avaliado como verdadeiro, a GPO é aplicada.

O Wmi Filter é um recurso muito util para personalizar as GPOs:

#######################################################
WMI Win32_OperatingSystem Version Number:

5.1 – Windows XP

5.2 – Windows Server 2003

5.2.3 – Windows Server 2003 R2

6.0 – Windows Vista & Windows Server 2008

6.1 – Windows 7 & Windows Server 2008 R2

6.2 – Windows 8 & Windows Server 2012

6.3 – Windows 8.1 & Windows Server 2012 R2

###########################################################################

Windows Desktop OS
select * from Win32_OperatingSystem WHERE ProductType = “1”

Windows Desktop OS – 32-bit
select * from Win32_OperatingSystem WHERE ProductType = “1” AND NOT OSArchitecture = “64-bit”
Windows Desktop OS – 64-bit
select * from Win32_OperatingSystem WHERE ProductType = “1” AND OSArchitecture = “64-bit”

############################################################################

WINDOWS XP

Windows XP
select * from Win32_OperatingSystem WHERE (Version like “5.1%” or Version like “5.2%”) AND ProductType=”1″
Windows XP – 32-bit
select * from Win32_OperatingSystem WHERE (Version like “5.1%” or Version like “5.2%”) AND ProductType=”1″ AND NOT OSArchitecture = “64-bit”
Windows XP – 64-bit
select * from Win32_OperatingSystem WHERE (Version like “5.1%” or Version like “5.2%”) AND ProductType=”1″ AND OSArchitecture = “64-bit”

###############################################################################

WINDOWS VISTA

Windows Vista
select * from Win32_OperatingSystem WHERE Version like “6.0%” AND ProductType=”1″
Windows Vista – 32-bit
select * from Win32_OperatingSystem WHERE Version like “6.0%” AND ProductType=”1″ AND NOT OSArchitecture = “64-bit”
Windows Vista – 64-bit
select * from Win32_OperatingSystem WHERE Version like “6.0%” AND ProductType=”1″ AND OSArchitecture = “64-bit”

##############################################################################

WINDOWS 7

Windows 7
select * from Win32_OperatingSystem WHERE Version like “6.1%” AND ProductType=”1″
Windows 7 – 32-bit
select * from Win32_OperatingSystem WHERE Version like “6.1%” AND ProductType=”1″ AND NOT OSArchitecture = “64-bit”
Windows 7 – 64-bit
select * from Win32_OperatingSystem WHERE Version like “6.1%” AND ProductType=”1″ AND OSArchitecture = “64-bit”

##############################################################################

WINDOWS 8

Windows 8
select * from Win32_OperatingSystem WHERE Version like “6.2%” AND ProductType=”1″
Windows 8 – 32-bit
select * from Win32_OperatingSystem WHERE Version like “6.2%” AND ProductType=”1″ AND NOT OSArchitecture = “64-bit”
Windows 8 – 64-bit
select * from Win32_OperatingSystem WHERE Version like “6.2%” AND ProductType=”1″ AND OSArchitecture = “64-bit”

##############################################################################

WINDOWS 8.1

Windows 8.1
select * from Win32_OperatingSystem WHERE Version like “6.3%” AND ProductType=”1″
Windows 8.1 – 32-bit
select * from Win32_OperatingSystem WHERE Version like “6.3%” AND ProductType=”1″ AND NOT OSArchitecture = “64-bit”
Windows 8.1 – 64-bit
select * from Win32_OperatingSystem WHERE Version like “6.3%” AND ProductType=”1″ AND OSArchitecture = “64-bit”

##############################################################################

SERVERS

ANY WINDOWS SERVER OS

Any Windows Server OS
select * from Win32_OperatingSystem where (ProductType = “2”) OR (ProductType = “3”)
Any Windows Server OS – 32-bit
select * from Win32_OperatingSystem where (ProductType = “2”) OR (ProductType = “3”) AND NOT OSArchitecture = “64-bit”
Any Windows Server OS – 64-bit
select * from Win32_OperatingSystem where (ProductType = “2”) OR (ProductType = “3”) AND OSArchitecture = “64-bit”
Any Windows Server – Domain Controller
select * from Win32_OperatingSystem where (ProductType = “2”)
Any Windows Server – Domain Controller – 32-bit
select * from Win32_OperatingSystem where (ProductType = “2”) AND NOT OSArchitecture = “64-bit”
Any Windows Server – Domain Controller – 64-bit
select * from Win32_OperatingSystem where (ProductType = “2”) AND OSArchitecture = “64-bit”
Any Windows Server – Non-Domain Controller
select * from Win32_OperatingSystem where (ProductType = “3”)
Any Windows Server – Non- Domain Controller – 32-bit
select * from Win32_OperatingSystem where (ProductType = “3”) AND NOT OSArchitecture = “64-bit”
Any Windows Server – Non-Domain Controller – 64-bit
select * from Win32_OperatingSystem where (ProductType = “3”) AND OSArchitecture = “64-bit”
WINDOWS SERVER 2003

Windows Server 2003 – DC
select * from Win32_OperatingSystem WHERE Version like “5.2%” AND ProductType=”2″
Windows Server 2003 – non-DC
select * from Win32_OperatingSystem WHERE Version like “5.2%” AND ProductType=”3″
Windows Server 2003 – 32-bit – DC
select * from Win32_OperatingSystem WHERE Version like “5.2%” AND ProductType=”2″ AND NOT OSArchitecture = “64-bit”
Windows Server 2003 – 32-bit – non-DC
select * from Win32_OperatingSystem WHERE Version like “5.2%” AND ProductType=”3″ AND NOT OSArchitecture = “64-bit”
Windows Server 2003 – 64-bit – DC
select * from Win32_OperatingSystem WHERE Version like “5.2%” AND ProductType=”2″ AND OSArchitecture = “64-bit”
Windows Server 2003 – 64-bit – non-DC
select * from Win32_OperatingSystem WHERE Version like “5.2%” AND ProductType=”3″ AND OSArchitecture = “64-bit”
WINDOWS SERVER 2003 R2

Windows Server 2003 R2 – DC
select * from Win32_OperatingSystem WHERE Version like “5.2.3%” AND ProductType=”2″
Windows Server 2003 R2 – non-DC
select * from Win32_OperatingSystem WHERE Version like “5.2.3%” AND ProductType=”3″
Windows Server 2003 R2 – 32-bit – DC
select * from Win32_OperatingSystem WHERE Version like “5.2.3%” AND ProductType=”2″ AND NOT OSArchitecture = “64-bit”
Windows Server 2003 R2 – 32-bit – non-DC
select * from Win32_OperatingSystem WHERE Version like “5.2.3%” AND ProductType=”3″ AND NOT OSArchitecture = “64-bit”
Windows Server 2003 R2 – 64-bit – DC
select * from Win32_OperatingSystem WHERE Version like “5.2.3%” AND ProductType=”2″ AND OSArchitecture = “64-bit”
Windows Server 2003 R2 – 64-bit – non-DC
select * from Win32_OperatingSystem WHERE Version like “5.2.3%” AND ProductType=”3″ AND OSArchitecture = “64-bit”
WINDOWS SERVER 2008

Windows Server 2008 – DC
select * from Win32_OperatingSystem WHERE Version like “6.0%” AND ProductType=”2″
Windows Server 2008 – non-DC
select * from Win32_OperatingSystem WHERE Version like “6.0%” AND ProductType=”3″
Windows Server 2008 – 32-bit – DC
select * from Win32_OperatingSystem WHERE Version like “6.0%” AND ProductType=”2″ AND NOT OSArchitecture = “64-bit”
Windows Server 2008 – 32-bit – non-DC
select * from Win32_OperatingSystem WHERE Version like “6.0%” AND ProductType=”3″ AND NOT OSArchitecture = “64-bit”
Windows Server 2008 – 64-bit – DC
select * from Win32_OperatingSystem WHERE Version like “6.0%” AND ProductType=”2″ AND OSArchitecture = “64-bit”
Windows Server 2008 – 64-bit – non-DC
select * from Win32_OperatingSystem WHERE Version like “6.0%” AND ProductType=”3″ AND OSArchitecture = “64-bit”
WINDOWS SERVER 2008 R2

Windows Server 2008 R2 – 64-bit – DC
select * from Win32_OperatingSystem WHERE Version like “6.1%” AND ProductType=”2″
Windows Server 2008 R2 – 64-bit – non-DC
select * from Win32_OperatingSystem WHERE Version like “6.1%” AND ProductType=”3″
WINDOWS SERVER 2012

Windows Server 2012 – 64-bit – DC
select * from Win32_OperatingSystem WHERE Version like “6.2%” AND ProductType=”2″
Windows Server 2012 – 64-bit – non-DC
select * from Win32_OperatingSystem WHERE Version like “6.2%” AND ProductType=”3″
WINDOWS SERVER 2012 R2

Windows Server 2012 R2 – 64-bit – DC
select * from Win32_OperatingSystem WHERE Version like “6.3%” AND ProductType=”2″
Windows Server 2012 R2 – 64-bit – non-DC
select * from Win32_OperatingSystem WHERE Version like “6.3%” AND ProductType=”3″

Fonte: nogeekleftbehind.com

Sobre o autor | Website

Meu nome é Leonardo Duarte sou profissional de TI com mais de 15 anos de experiência em produtos da Microsoft. Possuo diversas certificações: MCP/MCT/MCTS/MCSA/MCSE

Que tal um Curso Microsoft Gratuito com Certificado Internacional? Não fiquede fora junte-se aos 1100 alunos já inscritos.

Curso Gratuito Microsoft + Certificado Internacional

Para receber o link do curso preencha o campo abaixo.

Por gentileza, se deseja alterar o arquivo do rodapé,
entre em contato com o suporte.
UA-52233266-1