Difference between revisions of "Setting attributes with set QADUser"

From MyWiki
Jump to: navigation, search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
http://dmitrysotnikov.wordpress.com/2007/07/25/set-any-ad-attribute-with-powershell/<br>
 
http://dmitrysotnikov.wordpress.com/2007/07/25/set-any-ad-attribute-with-powershell/<br>
  
Set-QADUser jsmith -ObjectAttributes @{l=’New York’;description='Reallocated Jan 1'}
+
Set-QADUser jsmith -ObjectAttributes @{l=’New York’;description='Reallocated Jan 1'} ## changes city and description<br>
 +
Set-QADUser ‘mycompany.com/usersOU/User1′ -objectAttributes @{otherTelephone=@(’555-34-67′,’555-34-68′)} ## Sets multivalued property<br>
 +
Get-QADUser -ReturnPropertyNamesOnly -IncludeAllProperties ## Get the list of attributes

Latest revision as of 09:27, 26 January 2015

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