Jump to content


Kevin79

Collection with computers from an OU

Recommended Posts

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


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