Solved

Active Directory OU

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

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

Suggested Solutions

Title # Comments Views Activity
Terminal Server Temp Profile issue ? 12 54
Cisco ASDM device NT domain question 4 36
AD LDAP LDS 3 48
edit user account 1 30
In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
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 …

895 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now