title: Replacing Primary SMTP Address
body: <p>I have the following, working no problem.</p>
  <pre><code>
  Enable-RemoteMailbox -Identity $username -RemoteRoutingAddress($username+'@MYORG365.mail.onmicrosoft.com') 
  
  sleep 30
  
  Get-RemoteMailbox $username|Set-RemoteMailbox -EmailAddressPolicyEnabled:$true
  
  sleep 5
  
  Get-RemoteMailbox $username|Set-RemoteMailbox -EmailAddressPolicyEnabled:$false
  
  sleep 5
  
  Get-RemoteMailbox $username|Set-RemoteMailbox -PrimarySmtpAddress($username+'@MYORG.com')
  
  </code></pre>
  <p>What this script does, it adds an additional &quot;address@MYR.ORG.COM&quot; smtp to the mailbox that was just created for $username and set is as the primary smtp.</p>
  <p>What i am trying to do next is either, EDIT the existing primary smtp , and set it like above.
  Or DELETE, the current primary smtp and add a NEW primary smtp instead of above, so that eventually i will end up only with a single SMTP / PRIMARY-SMTP for this new mailbox.</p>
  <p>Your help is mostly appreciated.</p>
  <p>Thanks !</p>