Hello all,
i have been trying to implement this query found here on SCCM 2012 SP1 CU3 with no success http://social.technet.microsoft.com/Forums/en-US/844afc93-0611-4470-a109-f51b37babd3e/config-manager-2012-collection-to-query-rebootsfor-patch-management?forum=configmanagersecurity
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 AS sms_r_system inner join SMS_UpdateComplianceStatus as c on c.machineid=sms_r_system.resourceid where c.LastEnforcementMessageID = 9
normally if i found a query online, i could paste it in and would work, or i could look at what values they were using and implement it from scratch, but this query doesnt seem to work for me.
when i paste this query into query design, it give me back a message " this query either has a syntax error or is using features of the language not supported in design view.
I scoured through the query wizard looking for the values it seems to be calling, but cannot find them.
i can not find:
SMS_UpdateComplianceStatus
LastEnforcementMessageID
What am i missing?
Any help would be appreciated.