Cenário: Todas as estações de trabalho são computadores portáteis e não utilizam os mesmos sistemas operacionais ou hardware. Serão utilizadas duas formas de não aplicar as políticas de grupo à determinadas estações de trabalho. A primeira atende aos objetos do AD (usuário, grupo ou computador) e a segunda atende a diversas opções mais refinadas como características de hardware, software, sistema operacional, funções, serviços, configuração, etc.
Acompanhe como implementar exceção na política de grupo através de GPO com Active Directory do Windows Server 2012 para estação de trabalho com Windows 8.
Configurando exceções e filtros WMI na GPO
1) No Iniciar do Windows Server digite gerenciamento e clique no Gerenciamento de Políticas de grupo. Pode ser encontrado também no menu Ferramentas do Gerenciador do Servidor.
2) Navegue até a Unidade Organizacional onde se encontra a política que receberá as exceções e selecione a sua GPO. Clique na aba "Delegação" e selecione a opção Avançado.
3) Nesta janela, clique em Adicionar e selecione o usuário. Desmarque qualquer opção em Permitir e marque Negar para a opção "Aplicar política de grupo". Clique em OK.
4) Observe que a exceção para GPO foi criada com sucesso.
5) Selecione Filtros WMI, clique com o botão direito e selecione Novo....
6) Na janela Novo Filtro WMI, digite o nome do seu novo filtro e uma breve descrição. Clique em Adicionar.
7) Digite em Consulta a query que será utilizada. Consulte no final da postagem os modelos de querys WMI Filter que podem ser utilizas e as edite conforme o objetivo pretendido.
8) Feche a janela Novo Filtro WMI. Clique em Salvar.
9) Na janela Gerenciamento de Política de Grupo selecione GPO que será editada. Selecione a aba Escopo, clique na seta para expandir as opções de filtros WMI existentes e selecione o Filtro WMI que foi criada no passo anterior.
10) Na janela de confirmação, clique em Sim para alterar o filtro WMI. Feche o seu Gerenciador de política de grupo e teste a sua GPO.
Lista com exemplo de Filtros WMI para Sistemas Operacionais
Windows XP 32 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “5.1%” and ProductType = “1”
Windows XP 64 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “5.1%” and ProductType = “1”
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “5.1%” and ProductType = “1”
Windows XP 64 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “5.1%” and ProductType = “1”
Windows Vista 32bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.0%” and ProductType = “1” AND NOT OSArchitecture = “64-bit”
Windows Vista 64bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.0%” and ProductType = “1” AND OSArchitecture = “64-bit”
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.0%” and ProductType = “1” AND NOT OSArchitecture = “64-bit”
Windows Vista 64bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.0%” and ProductType = “1” AND OSArchitecture = “64-bit”
Windows 7 32bit
SELECT from Win32_OperatingSystem WHERE Version like “6.1%” AND ProductType=”1″ AND OSArchitecture = “64-bit”
Windows 7 64bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.1%” and ProductType = “1” AND OSArchitecture = “64-bit”
SELECT from Win32_OperatingSystem WHERE Version like “6.1%” AND ProductType=”1″ AND OSArchitecture = “64-bit”
Windows 7 64bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.1%” and ProductType = “1” AND OSArchitecture = “64-bit”
Windows 8 32 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.2%” and ProductType = “1” AND NOT OSArchitecture = “64-bit”
Windows 8 64 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.2%” and ProductType = “1” AND OSArchitecture = “64-bit”
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.2%” and ProductType = “1” AND NOT OSArchitecture = “64-bit”
Windows 8 64 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.2%” and ProductType = “1” AND OSArchitecture = “64-bit”
Windows 8.1 32 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.3%” and ProductType = “1” AND NOT OSArchitecture = “64-bit”
Windows 8.1 64 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.3%” and ProductType = “1” AND OSArchitecture = “64-bit”
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.3%” and ProductType = “1” AND NOT OSArchitecture = “64-bit”
Windows 8.1 64 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.3%” and ProductType = “1” AND OSArchitecture = “64-bit”
Windows 2000
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “5.0%”
Server 2003 32 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “5.1%” and NOT ProductType = “1”
Server 2003 64 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “5.1%” and NOT ProductType = “1” AND NOT OSArchitecture = “64-bit”
Server 2008 32bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.0%” and NOT ProductType = “1” AND NOT OSArchitecture = “64-bit”
Server 2008 64bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.0%” and NOT ProductType = “1” AND OSArchitecture = “64-bit”
Server 2008 R2
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.1%” and NOT ProductType = “1”
Server 2012
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.2%” and NOT ProductType = “1”
Server 2012 R2
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.3%” and NOT ProductType = “1”
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “5.0%”
Server 2003 32 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “5.1%” and NOT ProductType = “1”
Server 2003 64 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “5.1%” and NOT ProductType = “1” AND NOT OSArchitecture = “64-bit”
Server 2008 32bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.0%” and NOT ProductType = “1” AND NOT OSArchitecture = “64-bit”
Server 2008 64bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.0%” and NOT ProductType = “1” AND OSArchitecture = “64-bit”
Server 2008 R2
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.1%” and NOT ProductType = “1”
Server 2012
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.2%” and NOT ProductType = “1”
Server 2012 R2
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE “6.3%” and NOT ProductType = “1”
Lista com exemplo de Filtros WMI - Tipos diferentes de query
Computadores Portáteis
SELECT * FROM Win32_Battery
SELECT * FROM Win32_Battery
Computadores com Floppy Drive
SELECT * FROM Win32_FloppyDrive
SELECT * FROM Win32_FloppyDrive
Computadores com Trusted Platform Module (TPM) ativado
SELECT * FROM Win32_Tpm WHERE IsEnabled_InitialValue = True
SELECT * FROM Win32_Tpm WHERE IsEnabled_InitialValue = True
Microsoft Office esta instalado
SELECT * FROM Win32_Product WHERE Caption LIKE “Microsoft Office%”
SELECT * FROM Win32_Product WHERE Caption LIKE “Microsoft Office%”
Com uma determinada Feature instalada
SELECT * FROM Win32_ServerFeature WHERE Name=”Web Server (IIS)”
SELECT * FROM Win32_ServerFeature WHERE Name=”Web Server (IIS)”
Quando um serviço é iniciado automaticamente
SELECT * FROM Win32_Service WHERE Caption=”DHCP Server” AND StartMode=”Auto”
SELECT * FROM Win32_Service WHERE Caption=”DHCP Server” AND StartMode=”Auto”
Computadores com mais de um Processador físico
SELECT * FROM Win32_ComputerSystem where NumberOfProcessors > 1
SELECT * FROM Win32_ComputerSystem where NumberOfProcessors > 1
Computadores com mais de 2 Processadores logicos
SELECT * FROM Win32_ComputerSystem where NumberOfLogicalProcessors > 2
SELECT * FROM Win32_ComputerSystem where NumberOfLogicalProcessors > 2
Computadores com Processador Intel
SELECT * FROM Win32_Processor WHERE Manufacturer = “GenuineIntel”
SELECT * FROM Win32_Processor WHERE Manufacturer = “GenuineIntel”
Computadores com menos de 2GB de Ram
SELECT * FROM Win32_ComputerSystem WHERE TotalPhysicalMemory > 2000000000
SELECT * FROM Win32_ComputerSystem WHERE TotalPhysicalMemory > 2000000000
Monitor Resolução Mínima
SELECT * FROM Win32_DisplayControllerConfiguration WHERE HorizontalResolution>1279 AND VerticalResolution>719
SELECT * FROM Win32_DisplayControllerConfiguration WHERE HorizontalResolution>1279 AND VerticalResolution>719
Esse artigo foi submetido por
Alexandre de Matos
MCSE - MCSA - MCTS
alexandremn@live.estacio.br
Nenhum comentário:
Postar um comentário