Mahmoud87
Well-Known Member
- Messages
- 66
- Solutions
- 3
- Reaction score
- 7
- Points
- 8
Hi guys
I have created a query based collection for a single OU and it works perfectly fine, tried to edit the query and made it to grab the data off 2 organisational units, but it fails and doesn't collect grab machines. I have removed the extra bit I have added to the query and the collection works fine again no problems.
How to get a query based collection work on multiple OUs?
Here is the query I am using, which doesn't get any data from the OUs
I have created a query based collection for a single OU and it works perfectly fine, tried to edit the query and made it to grab the data off 2 organisational units, but it fails and doesn't collect grab machines. I have removed the extra bit I have added to the query and the collection works fine again no problems.
How to get a query based collection work on multiple OUs?
Here is the query I am using, which doesn't get any data from the OUs
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 where SMS_R_System.SystemOUName = "XXX.local/divisions/XXX/computers/XXX" and SMS_R_System.SystemOUName="XXX.local/divisions/XXX/computers/hr"