OneScript Team Blog

A world of automation script samples based on IT Pros' real-world tasks

[Script of Aug. 30] Get or Remove forwarding address for Exchange 2010

[Script of Aug. 30] Get or Remove forwarding address for Exchange 2010

  • Comments 1
  • Likes

Script Download: OSCforwardingAddress(PowerShell).zip

This PowerShell script sample shows get or remove forwarding address for Exchange 2010.

In most exchange environment, the administrator will set forwarding and redirecting on some users. But when we need to remove those old accounts that have not been used, we should first find how many mailboxes had set the forwarding address to those old accounts. As it is a property in Get-Mailbox, we can use a script to list those mailbox names, then we can remove those relationship as well.

image image

You can find more All-In-One Script Framework script samples at

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Hey,

    I have a scenario wherein 2 user's mail forwarding is done to one manager, how can I proceed to delete only one forwarding out of those 2. I apologize as I am not a master of scripting.

    I would like to import name of users from CSV to disable forwarding.

    I thank you in advance for your guidance.

    Warm Regards,