Remove SMTP address for a specific domain from all mailboxes.

Here is a handy script to remove obsolete proxyaddresses from all mailboxes.

in Get-Mailbox
-ResultSize Unlimited)
  $i.EmailAddresses |
-like ‘*’}
| %{
      Set-Mailbox $i -EmailAddresses @{remove=$_}

Just replace the with your own. 
Author: Harri Jaakkonen

Leave a Reply

Your email address will not be published. Required fields are marked *