Forwarding Address Export and Import

UPDATE: This script has moved to the PowerShell Gallery.  Future updates will be posted here: transitioning to Office 365 (or any other sort of cross-forest move), Forwarding Address information does n

5 Star
1,379 times
Add to favorites
Office 365
E-mail Twitter Digg Facebook
  • Filter missing
    2 Posts | Last post February 09, 2019
    • line 72, the filter is missing (when $domain is not specified)
      Users = Get-Mailbox -ResultSize Unlimited [[[-Filter]]] { (ForwardingAddress -ne $null) -or 
      (ForwardingSmtpAddress -ne $null) }
    • I've updated the file. Thanks!
  • Exchange 2010
    1 Posts | Last post October 23, 2018
  • Exchange 2010
    1 Posts | Last post October 23, 2018
    • I had to add |where on the second get-mailbox when I didn't use a domain
  • Missing DeliverToMailboxAndForward
    2 Posts | Last post April 05, 2018
    • Hi Aaron, nice script! I did notice you were missing the following in the Else statement in order to capture the DeliverToMailboxAndForward attribute. I inserted this into line 81 and all is well. 
      $DeliverToMailboxAndForward = $User.DeliverToMailboxAndForward.ToString()
    • Thanks for pointing it out! I've updated the script to reflect that.
  • Missing comma
    3 Posts | Last post November 21, 2017
    • Hi Aaron, thanks for the script, the export works perfectly - I noticed it needs a comma at the end of line 42 or it wont run.
      Is there any way to adapt it to check for the DeliverToMailboxAndForward attribute and also replicate when importing? 
      Also, there is some company information in the script that you may want to remove!
    • I've updated the script to also include the DeliverToMailboxAndForward attribute.
    • I've updated the script to resolve the missing comma issue.