+ Post New Thread
Results 1 to 10 of 10
Scripts Thread, Script or *method* of changing 'department' in all users in an OU in Coding and Web Development; Hi guys, Need to change an intire OU's 'department' to read something else. Is there an easy way of doing ...
  1. #1
    Ben_Stanton's Avatar
    Join Date
    Jan 2007
    Location
    Hertfordshire
    Posts
    460
    Thank Post
    9
    Thanked 15 Times in 14 Posts
    Rep Power
    18

    Script or *method* of changing 'department' in all users in an OU

    Hi guys,

    Need to change an intire OU's 'department' to read something else. Is there an easy way of doing so?...other than one-by-one.

    Sorry if answered before, but tried looking and couldn't find anything.

    Cheers

  2. #2


    Join Date
    Oct 2006
    Posts
    3,414
    Thank Post
    184
    Thanked 356 Times in 285 Posts
    Rep Power
    149
    What do you mean department?

    To rename the OU you must be in AD Users and Computers NOT GPMC

  3. #3
    Ben_Stanton's Avatar
    Join Date
    Jan 2007
    Location
    Hertfordshire
    Posts
    460
    Thank Post
    9
    Thanked 15 Times in 14 Posts
    Rep Power
    18
    Sorry, I wasn't being clear enough.

    I want to change the 'departmrnt' field in the 'properties' section of users in a specific OU...

    Ben

  4. #4
    penfold_99's Avatar
    Join Date
    Feb 2008
    Location
    East Sussex
    Posts
    993
    Thank Post
    60
    Thanked 165 Times in 117 Posts
    Rep Power
    68
    You should be able to do this with vbscript. i think microsoft vbscript centre should have one to do this.

  5. #5
    jsnetman's Avatar
    Join Date
    Oct 2007
    Posts
    887
    Thank Post
    23
    Thanked 134 Times in 126 Posts
    Rep Power
    40

  6. #6


    Join Date
    Oct 2006
    Posts
    3,414
    Thank Post
    184
    Thanked 356 Times in 285 Posts
    Rep Power
    149
    Quote Originally Posted by Ben_Stanton View Post
    Sorry, I wasn't being clear enough.

    I want to change the 'departmrnt' field in the 'properties' section of users in a specific OU...

    Ben
    No need for scripts or 3rd party apps

    Just select all the users.
    Right click, properties
    Goto Organisation tab
    Check Departments ticky box and write

  7. #7
    Ben_Stanton's Avatar
    Join Date
    Jan 2007
    Location
    Hertfordshire
    Posts
    460
    Thank Post
    9
    Thanked 15 Times in 14 Posts
    Rep Power
    18
    Quote Originally Posted by j17sparky View Post
    No need for scripts or 3rd party apps

    Just select all the users.
    Right click, properties
    Goto Organisation tab
    Check Departments ticky box and write

    That was the first thing I tried naturally, but you can only modify 'description' on multiple objects.

    I'll give aadmodify a go. I have it here, just didn't think of looking.

    Thanks...

  8. #8

    Join Date
    Nov 2006
    Location
    Kendal
    Posts
    1,555
    Thank Post
    112
    Thanked 177 Times in 144 Posts
    Rep Power
    72
    Think Wisesoft (WiseSoft - Resources for IT Professionals) has a bulk modify utility.

    If is as good as the account management spreadsheet from the same site it will be excellent.

    PS Thanks to the guy who writes that app - it has saved me hours this term!

  9. #9


    Join Date
    Oct 2006
    Posts
    3,414
    Thank Post
    184
    Thanked 356 Times in 285 Posts
    Rep Power
    149
    Quote Originally Posted by Ben_Stanton View Post
    That was the first thing I tried naturally, but you can only modify 'description' on multiple objects.

    I'll give aadmodify a go. I have it here, just didn't think of looking.

    Thanks...
    It works for me. I do have Specops GPupdate and Regpol installed but afaik they dont add that particular feature. Im on server 2003 native environment.

  10. #10

    Join Date
    Dec 2005
    Location
    Bradford
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    you can use the dsquery user 'location of ou'|dsmod -dept command to change all of the users in that OUs department propeties.



SHARE:
+ Post New Thread

Similar Threads

  1. Prevent users changing wallpaper ?
    By pinemarten in forum How do you do....it?
    Replies: 14
    Last Post: 14th January 2010, 05:15 PM
  2. Changing passwords for SIMS users by script
    By academic_mwnci in forum MIS Systems
    Replies: 2
    Last Post: 3rd September 2008, 01:02 AM
  3. Replies: 5
    Last Post: 26th February 2008, 10:02 AM
  4. Changing a users password without remembering it!
    By acrobson in forum How do you do....it?
    Replies: 10
    Last Post: 23rd November 2007, 10:15 AM
  5. Changing windows explorer views for users.
    By Galway in forum Windows
    Replies: 1
    Last Post: 11th August 2007, 02:03 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •