OU Syntax in AD scripting

Posted on 2006-05-12
Last Modified: 2010-04-17

I have a script that changes the rights on the property sets on a user.  The script works well but I do not know how to have it applied on an OU that is not at the root level.

Here's the code line I need to edit

Set objSdUtil = GetObject("LDAP://OU=testou,DC=company,DC=com")

All I need to know is the proper syntax to apply this script on an OU (users) that is in the following structure:>city->groups->users


Question by:inf2300
    LVL 6

    Accepted Solution

    Can you elaborate on what rights you are changing on "the property sets".

    For example what property sets? Are you delegating rights for users to specific OU's?

    In>city->groups->users is the following correct?




    Author Comment

    Thanks Tone!  It works!  I was just entering my OU fields in the wrong order.

    I'm trying to give a member of the users group the right to change phone numbers, addresses and other details in active directory on a specific OU.    


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    761 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

    9 Experts available now in Live!

    Get 1:1 Help Now