Attributes to be set on Objects in AD

navin_peddi
navin_peddi used Ask the Experts™
on
I have a list of AD objects across differant OU's. I need to update the IP phone information for them. How do I do it at once?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
You can use powershell

If you are running a 2008R2 DC use the MS AD cmdlets

If not use the Quest AD cmdlets.

This link should help.

http://dmitrysotnikov.wordpress.com/2007/07/16/programmatically-manipulate-ad-user-attributes-with-powershell/
We are using windows 2003 R2 standard edition SP2
Commented:
If you want to use powershell I would recomend using the quest tools. You could also use VBScript, dsmod, admod and several others. All depends on your preference.
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

I have the information in a CSV file and that should be applied on to the AD attributes.
Commented:
With quest something like this
Your csv file will need the header

samaccountname,ipPhone

or you can change the script.

$users = import-csv c:\users
foreach($user in $users){
set-qaduser $user.samaccountname  -objectAttributes @{ipPhone=$($user.ipPhone)}
}

Author

Commented:
Thanks for the support

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial