Jump to content


Query to Find Unhealthy SCCM Clients

Recommended Posts



Just wanted some advice, how would i go about trying to find the best way to find sccm clients that have not contacted the server in 10 days for example. or machines that have not received critical updates. how would i write the query for that?


thank you

Share this post

Link to post
Share on other sites



Here is one collection query that may be helpful to you:


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_WORKSTATION_STATUS on SMS_G_System_WORKSTATION_STATUS.ResourceId = SMS_R_System.ResourceId where SMS_G_System_WORKSTATION_STATUS.LastHardwareScan < DateAdd(dd,-30,GetDate())


This query will return all system resources that have not returned a hardware inventory to the server in more than 30 days.


Hope this helps.



Trevor Sullivan



  • Like 1

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...