Link to home
Start Free TrialLog in
Avatar of defecta
defectaFlag for Australia

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.
Avatar of James
James
Flag of Ireland image

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.

http://gallery.technet.microsoft.com/scriptcenter/d5c6b119-0337-4b5d-93f3-c409c6cf7a45

Avatar of brettkm
brettkm

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
ASKER CERTIFIED SOLUTION
Avatar of Mike Kline
Mike Kline
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.

Avatar of defecta

ASKER

Fantastic detail and throughness! :D