Hello, I have this collection, but it only returns servers without SCOM 2012 agent.
All I need is a collection with servers with SCOM 2012 agent already installed ( in order to upgrade them to SCOM 2012 SP1). select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.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 “%System Center Operations Manager 2012 Agent%“) and SMS_R_System.ResourceId not in (select SMS_R_System.ResourceId from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS_64 on SMS_G_System_ADD_REMOVE_PROGRAMS_64.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS_64.DisplayName LIKE “%System Center Operations Manager 2012 Agent%“)and SMS_R_System.Client = 1 and SMS_R_SYSTEM.OperatingSystemNameAndVersion like ‘%Server%‘ Can anyone help me please ? Thank you. Bogdan Radu.

