Jump to content


Delita

Recurse Query - AD OUs

Recommended Posts

I am setting up collections of devices to mimic the OUs setup in AD. Mostly this is for Computer objects. I had found that i can query for Devices in an OU, but I was wondering is there a way to Query a root OU, and have all sub OUs machines included.

 

In the mean time my query has been using the Criterion type as "A List of Values" and I have been adding the root OU, and all sub OUs manually (this is becoming very time consuming). I am worried that down the road when an OU is added, nobody will remember to add the new OU to the machine collection.

 

Any more information needed please let me know.

Share this post


Link to post
Share on other sites

Actually this is really simple due to the way System OU discovery works. Tehre is no need to use the "is like" Just write the query for the Top level OU and all sub OU PC will automatically be included.

 

Your Query will look very similar to this

select * from SMS_R_System where SMS_R_System.SystemOUName = "GARTEK.TST/SERVER"

  • Like 1

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.