Difference between revisions of "Updating ProxyAddresses, mine"

From MyWiki
Jump to: navigation, search
Line 1: Line 1:
 +
<source lang="text">
 +
When you use the Add, Remove, Replace and Clear parameters together, the operations will be performed in the following order:
 +
..Remove
 +
..Add
 +
..Replace
 +
</scource>
 
<source lang="powershell">
 
<source lang="powershell">
 
Set-ADUser -Identity <username> -Replace @{Proxyaddresses="SMTP=g.pompson@bold.ab.uk"
 
Set-ADUser -Identity <username> -Replace @{Proxyaddresses="SMTP=g.pompson@bold.ab.uk"
 
Set-ADUser -Identity <username> -Add @{Proxyaddresses="smtp=bla01ff@bold.ab.uk"
 
Set-ADUser -Identity <username> -Add @{Proxyaddresses="smtp=bla01ff@bold.ab.uk"
 
</source>
 
</source>

Revision as of 16:16, 11 November 2014

When you use the Add, Remove, Replace and Clear parameters together, the operations will be performed in the following order:
..Remove
..Add
..Replace
</scource>
<source lang="powershell">
Set-ADUser -Identity <username> -Replace @{Proxyaddresses="SMTP=g.pompson@bold.ab.uk"
Set-ADUser -Identity <username> -Add @{Proxyaddresses="smtp=bla01ff@bold.ab.uk"