Rickym61
Posts: 140
Score: 10 Joined: 4/4/2007 Status: offline
|
sorry misread, I dont have access to SMS at the moment, but from my email archive, I have this query for other half of what you require. You could easily link the 2 to get your results. Im sure the SQL guru #2 would be able to rattle you up the correct query, he usually lurks. How To: Create a Collection Based on an Advertisement Status You may encounter a time when you want to target systems that reported a failure message for an advertisement, or reported a specific failure exit code. This is an example of how to create a query-based collection of all systems that reported a failure for AdvertisementID LAB20089. SELECT sys.ResourceID,sys.ResourceType,sys.Name,sys.SMSUniqueIdentifier ,sys.ResourceDomainORWorkgroup,sys.Client FROM sms_r_system as sys inner join SMS_ClientAdvertisementStatus as offer on sys.ResourceID=offer.ResourceID WHERE AdvertisementID = 'LAB20089' and LastStateName = "Failed" You should be able to paste this WQL directly into a new query-based membership rule, and modify the AdvertisementID for your environment.
_____________________________
Rickym61 What being arm twisted by Sherry Kissenger results in i.e. My Blog
|