Setting attributes with set QADUser

From MyWiki
Jump to: navigation, search

http://dmitrysotnikov.wordpress.com/2007/07/25/set-any-ad-attribute-with-powershell/

Set-QADUser jsmith -ObjectAttributes @{l=’New York’;description='Reallocated Jan 1'} ## changes city and description
Set-QADUser ‘mycompany.com/usersOU/User1′ -objectAttributes @{otherTelephone=@(’555-34-67′,’555-34-68′)} ## Sets multivalued property
Get-QADUser -ReturnPropertyNamesOnly -IncludeAllProperties ## Get the list of attributes