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.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery