Jump to content


  • 0
Kevin79

Collection with computers from an OU

Question

How do I create a collection that includes all computers in a specific OU? My AD structure is like:

 

Domain

-USA

-Site1

-Clients

-Servers

-Users

-Site2

-Clients

-Servers

-Users

-Canada

-Site1

-Clients

-Servers

-Users

-Site2

-Clients

-Servers

-Users

 

Etc.

 

I want to create a collection that contains all the objects in USA-Site1-Clients. How do I do that?

Edited by Kevin79

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Kevin,

 

First off, you must ensure that Active Directory System Group Discovery is enabled on your primary site servers.

 

Next, you can create a query around the SMS_R_System.SystemOUName that looks for an OU path like: Domain.com/USA/Site/Clients. Keep in mind that it does not use the distinguished name syntax, like OU=Clients,OU=Site,OU=USA,DC=domain,DC=com.

 

You could also, in theory, use a Desired Configuration Management (DCM) rule to build such a collection. Check the root\RSOP\machine WMI namespace for a class called RSOP_Session, which has a property called SOM. This property contains the distinguished name of the OU that the client is a member of.

 

Cheers,

Trevor Sullivan

http://trevorsullivan.net

http://twitter.com/pcgeek86

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
Answer this question...

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