Jump to content


Matze1983

device collection based on OU - all OU´s with the same name

Recommended Posts

hello all,

 

i´m new here and i´m new relativity new to SCCM.

 

We have a huge active directory with many OU´s.

 

At the moment, i try to create some device collection for windows updates based on OU.

 

We have several locations with server-ou´s:

 

Land\City\Server\ImportantServer

Land\City\Server\MemberServer

 

for about 100 locations.

 

now i plan to deploy windows-updates distinguished by ImportantServer and MemberServer.

 

I know, that I can make device collections based on OU in Membership Rules, but in the Query Statement, I have to give the complete path to the OU:

 

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 = "PATH OF THE OU"

 

Now my question:

is it possible to query all OU´s named "ImportantServer" and "MemberServer" in the complete active directory independent from the Land, City etc?

 

I hope my question is understandable :)

 

Thanks everybody for your help!

 

Best regards

Mathias

Share this post


Link to post
Share on other sites

Try this one.

 

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.DistinguishedName like "%ImportantServer%"

 

Do not use SystemOUName. It's not distinct because it keeps a history.

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.