Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING SCCM Compliance Status query

  • Thread starter Thread starter dj3094
  • Start date Start date
  • Replies Replies 11
  • Views Views 5K

dj3094

Well-Known Member
Messages
241
Reaction score
7
Points
18
Hello I am trying to create a collection with below query, i ma getting syntax error

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_UpdateComplianceStatus on SMS_UpdateComplianceStatus.machineid=sms_r_system.resourceid
where SMS_UpdateComplianceStatus.LastEnforcementMessageID = 11

when i do it manually, I couldnt find attribute class for SMS_UpdateComplianceStatus. Please help
 
I have added all attributes except innerjoin and where clause, as i could not find SMS_UpdateComplianceStatus
 
thanks Garath,
So what query should i use to get workstations with failed windows updates?
also workstations with no reboot more than 30 days?
 
Hi all, i do have one concern, Is there any option to execute .bat or .vbs file on bulk systems.
If yes please suggest how. I will be very thank full.
 
I have deployed software update on my collection14 days back but still as I can see lots of machines which status are unknown (Client check passed/Active And Client check passed inactive).So wanted to restart SMS agent services in all local machine after renaming Registry.pol file. It is 400 counts of all machines.
 
I have deployed software update on my collection14 days back but still as I can see lots of machines which status are unknown (Client check passed/Active And Client check passed inactive).So wanted to restart SMS agent services in all local machine after renaming Registry.pol file. It is 400 counts of all machines.

Why do you want to do that? Have you tested this on one computer to confirm that it solves the problem? Why would you need to restart the SMS Agent to rename the registry.pol services?

Have you written batch file already? Does it work when you deploy it to a test computer?
 
Back
Top