SCCM Query for Newly Discovered (Server) Systems

Technology Add comments

The issue was raised recently that we needed a means of identifying all new servers introduced to the environment so that we can add them to the appropriate patching collections within SCCM. With the help of Donnie Taylor, I was able to get the following query to work:

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 where DATEDIFF(dd, SMS_G_System_SYSTEM.TimeStamp,GetDate()) < 30

Now there is no logic in the code to select only server-based operating systems, but I accomplished this by limiting this collection results to the “Windows Server Systems” collection.

2 Responses to “SCCM Query for Newly Discovered (Server) Systems”

  1. System Center Configuration Manager 2007 | “SCCM Query for Newly Discovered Systems” - Blog de Aurélien BONNIN [EXAKIS] Says:

    [...] : System Center Guide Blog Share this post:               [...]

  2. System Center Configuration Manager 2007 | “SCCM Query for Newly Discovered Systems” - Aurélien BONNIN at myITforum.com Says:

    [...] : System Center Guide Blog Share this post:               [...]

Leave a Reply

You must be logged in to post a comment.

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in