19.7.13

Query collection for only Desktop machines Excluding servers sccm 2012

original link

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 inner join SMS_G_System_SYSTEM on SMS_G_System_SYSTEM.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_SYSTEM_ENCLOSURE on SMS_G_System_SYSTEM_ENCLOSURE.ResourceId = SMS_R_System.ResourceId where SMS_G_System_SYSTEM.SystemRole = "Workstation" and SMS_R_System.OperatingSystemNameandVersion not like "%Server%" and SMS_G_System_SYSTEM_ENCLOSURE.ChassisTypes not in ("8","9","10","14","13","17","15")

Комментариев нет:

Отправить комментарий