Link to home
Start Free TrialLog in
Avatar of beardog1113
beardog1113Flag for China

asked on

Quest powershell command to modify AD object info for 2003

hello iSiek
this is my another question about modify bulk user account information via Quest powershell on windows 2003 platform. check attachment please same with previous, base on this, let me know what command steps i should use.

thank you
user.csv
Avatar of aadi369
aadi369

ASKER CERTIFIED SOLUTION
Avatar of Krzysztof Pytko
Krzysztof Pytko
Flag of Poland 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
Avatar of beardog1113

ASKER

thanks, this command works perfect, a little question left, there is an option in each user account  "IP phone", what parameter i should use in the command if i need change it?
because while i type in -ip+Tab, not such parameter.

thanks again
Good question :) This is not predefined switch, so you cannot use it directly. For that you have to use LDAP attribute

To change single user IPPhone,try this
Get-QADUser UserName | Set-QADUser -objectAttributes @{ IPPhone='11-222-333' }

Open in new window


for bulk change from CSV file where e-mail address is a base for user search and IPPhone header, use
Import-CSV c:\users.csv | %{ Get-QADUser -Email $_."Email" | Set-QADUser -objectAttributes @{ IPPhone=$_."IPPhone" } }

Open in new window


Krzysztof
ok and your answer initiate another question.
what "@" meaning in this command?

thank you
This means that attribute is multivalue (array) :)

As objectAttributes is an array and you can modify many parameters, you need to use @ (means - array)

i.e.

objectAttributes @{ IPPhone='111-222-333' ; employeeID='11111' ; employeeNumber='222-3ss' }

Krzysztof
thank you so much
No problem, you're welcome :) I'm glad I could help once again

Krzysztof
hello iSiek
i will raise another related question, could you help me on this?
:)


thanks