find and replace for Active Directory?

Posted on 2011-04-26
Last Modified: 2012-05-11
Hi folks,

I need to find everyone in a certain department and change the name of that department easily.

Is there a way to do this? Easily?

(If the only solution is a VBscript I will need a bit of hand holding so I can follow and be confident that I'm not going to break something. :) )

Question by:defecta
    LVL 15

    Expert Comment

    This link here that I have provided should do the trick and it will output the information in a excel sheet. There is an explaination of what the script does, so make sure to read this.

    LVL 7

    Expert Comment

    Account Management Spreadsheet should be able to do what you want.  You can load AD objects by OU, edit the propeties in Excel how ever you want, and then export back.  Unbelievably handy program.
    LVL 57

    Accepted Solution

    Lots of ways  vbscript, powershell, adfind/admod, etc.  

    ...but since you said easy I thought about

    So I took some screenshots, let me know if you have questions

    the LDAP query is  (used department1 in my example)



    LVL 35

    Expert Comment

    by:Joseph Daly
    Building on Mklines suggestions of using the ldap filter I would reccomend the DS series of tools.

    dsquery * -filter "(&(objectcategory=person)(objectclass=user)(department=dept1))" | dsmod user -dept dept2

    You can run this command from any computer with Active directory users and computers installed.


    Author Closing Comment

    Fantastic detail and throughness! :D

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    This is my first article in EE and english is not my mother tongue so any comments you have or any corrections you would like to make, please feel free to speak up :) For those of you working with AD, you already are very familiar with the classi…
    Mapping Drives using Group policy preferences Are you still using old scripts to map your network drives if so this article will show you how to get away for old scripts and move toward Group Policy Preference for mapping them. First things f…
    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 tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

    746 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

    14 Experts available now in Live!

    Get 1:1 Help Now