Setting attributes with set QADUser

From MyWiki
Revision as of 09:27, 26 January 2015 by George2 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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