Usuário com melhor resposta
Query - KB 970653

Pergunta
-
Respostas
-
Se voce tem o Software Updates instalado tem um report de compliance, la voce pode ver todas as estações a qual não possuem determinado KB (status is Required ou o status Unknow)
Report 171
Compliance 9 - Computers in a specific compliance state for an update <secondary>- Marcado como Resposta Cleber Marques MSFTModerator segunda-feira, 2 de novembro de 2009 11:10
-
Só precisa trocar para ResourceID, e não Name. Olha a que eu usei.
Com KB:
select SMS_R_System.ResourceId from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "%970653-v3%" or SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "%955839%"
Sem KB:
select Name from SMS_R_System where ResourceId not in (select SMS_R_System.ResourceId from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "%970653-v3%" or SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "%955839%") order by Name
Para limitar acima de 5.1, monte outra query Where OS Version is in list [5.1, 5.2], etc. Depois limite a query nesta nova query.
[]s
Wesley Fernandes - ConfigMgr MVP - Blog: http://wesleey.spaces.live.com- Marcado como Resposta Cleber Marques MSFTModerator segunda-feira, 2 de novembro de 2009 11:10
Todas as Respostas
-
- Crie uma query das máquinas que tem o KB 970653, mas no select pegue apenas o "resource ID".
- Crie outra query com todas as máquinas Where "resource ID" is not in "Query Acima".
Entendeu?
Você faz uma query (query 1) das que não tem o KB (mas essa não serve pra você), e depois cria uma de todas as máquinas que não estão na query 1.
Lembre-se de limitar esta query a SO acima de 5.1. Este KB não se aplica em NT e 2000.
Olha este exemplo: http://smsug.ca/forums/p/37/52.aspx
[]s
Wesley Fernandes - ConfigMgr MVP - Blog: http://wesleey.spaces.live.com -
Se voce tem o Software Updates instalado tem um report de compliance, la voce pode ver todas as estações a qual não possuem determinado KB (status is Required ou o status Unknow)
Report 171
Compliance 9 - Computers in a specific compliance state for an update <secondary>- Marcado como Resposta Cleber Marques MSFTModerator segunda-feira, 2 de novembro de 2009 11:10
-
Boa Noite
Wesley Veja se eu entendi certo.
KB 970653 collection:
select distinct SMS_R_System.Name from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "KB970653%"
No KB 970653 collection:
select Name from SMS_R_System where Name not in (select distinct SMS_R_System.Name from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like " KB970653%")
Agora como que faço para limitar isso para So acima de 5.1.
Grato
Nielsen Reginilson de Almeida -
Só precisa trocar para ResourceID, e não Name. Olha a que eu usei.
Com KB:
select SMS_R_System.ResourceId from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "%970653-v3%" or SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "%955839%"
Sem KB:
select Name from SMS_R_System where ResourceId not in (select SMS_R_System.ResourceId from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "%970653-v3%" or SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "%955839%") order by Name
Para limitar acima de 5.1, monte outra query Where OS Version is in list [5.1, 5.2], etc. Depois limite a query nesta nova query.
[]s
Wesley Fernandes - ConfigMgr MVP - Blog: http://wesleey.spaces.live.com- Marcado como Resposta Cleber Marques MSFTModerator segunda-feira, 2 de novembro de 2009 11:10
-
Pessoal, como ficamos por aqui com esta questão? Já temos algum status sobre se o problema foi resolvido ou não? Se sim, classifiquem o tópico, por favor.
Abraços,
Cleber Marques
Microsoft MVP & MCT | Charter Member: SCVMM & MDOP
Projeto MOF Brasil: Simplificando o Gerenciamento de Serviços de TI
Meu Blog | MOF.com.br | CleberMarques.com | CanalSystemCenter.com.br -
Estou marcando este tópico como respondido para manter a organização do fórum, caso for necessário tirar alguma dúvida relacionada sugiro a abertura de um novo post. J
Abraços,
Cleber Marques
Microsoft MVP & MCT | Charter Member: SCVMM & MDOP
Projeto MOF Brasil: Simplificando o Gerenciamento de Serviços de TI
Meu Blog | MOF.com.br | CleberMarques.com | CanalSystemCenter.com.br