Skip to content

Collection with computers from an OU

Featured Replies

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

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

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.