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”
Leave a Reply
You must be logged in to post a comment.
August 31st, 2009 at 10:34 am
[...] : System Center Guide Blog Share this post: [...]
September 27th, 2009 at 12:27 am
[...] : System Center Guide Blog Share this post: [...]