Jump to content


StefanWe

Query on System OU but not computers from underlying OU

Recommended Posts

Hi,

 

i have a simple query that imports computers from an on like XenDesktop55.

Under that OU there is another OU "Controller" where one computer object is in. "Controller01".

 

Now, i have in my collection all computers from XenDesktop55 and the Controller01 computer.

How can i only get the computers from the first OU?

 

My query is this:

 

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 = "INTERN.NET/XENDESKTOP55"

 

Thanks

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.

Guest
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.

Loading...

×
×
  • Create New...