Solved

Active Directory OU

Posted on 2010-08-12
4
423 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

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Resolve DNS query failed errors for Exchange
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

773 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