defecta
asked on
find and replace for Active Directory?
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. :) )
Thanks.
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. :) )
Thanks.
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.
http://www.wisesoft.co.uk/software/account_management_spreadsheet/default.aspx
http://www.wisesoft.co.uk/software/account_management_spreadsheet/default.aspx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Building on Mklines suggestions of using the ldap filter I would reccomend the DS series of tools.
dsquery * -filter "(&(objectcategory=person) (objectcla ss=user)(d epartment= dept1))" | dsmod user -dept dept2
You can run this command from any computer with Active directory users and computers installed.
dsquery * -filter "(&(objectcategory=person)
You can run this command from any computer with Active directory users and computers installed.
ASKER
Fantastic detail and throughness! :D
http://gallery.technet.microsoft.com/scriptcenter/d5c6b119-0337-4b5d-93f3-c409c6cf7a45