Solved

Active Directory OU

Posted on 2010-08-12
4
424 Views
Last Modified: 2012-05-10
Greetings, I inherited a network that already has AD set up. OUs are set up with what I call subordinate OUs. In other words,
                                                           OU-1
                                                                OU-1a
I cannot get my scripts to find OU-1a. I tried this, strOU = "OU=OU-1/OU-1a ," and it did not find the OU. Is there a way to get my script to find OU-1a and make changes to user accounts?
0
Comment
Question by:wayneray
4 Comments
 
LVL 30

Accepted Solution

by:
Rich Weissler earned 125 total points
ID: 33422836
Taking a stab:  Did you try "OU=ou-1a,ou=ou-1" ?
0
 
LVL 15

Assisted Solution

by:JBond2010
JBond2010 earned 125 total points
ID: 33422945
If you run from the command prompt dsquery /? eg: dsquery ou dc=mydom,dc=com and then look for the OU in question and reference this to your script and see what happens.
0
 

Author Closing Comment

by:wayneray
ID: 33423236
Razmus your solution was totally correct. I was a bit cautious so I followed JBond2010's dsquery first. Thanks to both of you I am scripting happily.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question