set AD Attribute "Department" = OU name

Home Forums Microsoft Networking and Management Services Active Directory set AD Attribute "Department" = OU name

This topic contains 2 replies, has 3 voices, and was last updated by  v-2nas 7 years, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • CapeAdmin

    I would like to be able to have all of my users “Department” attribute to auto-set itself to their OU name (or a script to do so) has anyone any experience with doing this – or be able to point me in the right direction to do so? I have ALOT of users and I need to populate this field for all of them – I could do so manually, but it will take a VERY long time to do so. Hoping one of you gurus knows how to accomplish this.
    Thanks in advance for your time to anyone who may respond to this.


    Re: set AD Attribute "Department" = OU name


    You can use ADModify.Net tool to such kind of change.


    Re: set AD Attribute "Department" = OU name

    How many department OUs do you have? If it’s only a few then the easiest way would be to use ADU&C. Go to each OU, select all the users and open the properties and then you can edit the department all at once. If you have more than 10 department OUs then we can look at scripting the change.

    If you have a lot of OUs then post back with what OS your DC is and we can go from there.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.