Exchange – Find All Forwards, Redirects and Attachment Forwards

Written by Allen White on. Posted in Exchange 2010, Exchange 2013, Exchange 2016

In a larger Exchange environment without proper change control it can be quite difficult to keep track of where recipients emails are forwarded to, who they are redirected to or when specific attachments are forwarded to other users.

This can obviously be done in the ECP however it may take quite a long time to get all the information required, luckily the script below will list off all the redirects and forwards in an Exchange 2010, 2013 and Exchange 2016 environment, it also outputs the data to CSV to make the information easy to read.

foreach ($mbx in (Get-Mailbox -ResultSize unlimited)) { Get-InboxRule -Mailbox $mbx.DistinguishedName | where {($_.ForwardTo -ne  $null) -or ($_.redirectto -ne $null) -or ($_.forwardasattachment -ne $null)} | select  MailboxOwnerID,Name,ForwardTo | export-csv d:\exchangeforwards.csv} -Notypeinformation
 
Allen White
Allen is a Consultant for ITPS in the North East of England and holds the following accreditations. MCSA, MCSE, MCTS, MCITP, CCA, CCSP, VCP 4,5 and HP ASE, AIS - Network Infrastructure.

ITPS provides strategic IT consultancy, implementation, data centre provision and unified communications, as well as support services and workspace and disaster recovery. If you require a consultation then please contact me via the contacts section or direct on 07931222991, add me on linkedin. https://uk.linkedin.com/in/allenwhiteconsultant0001

Tags: , ,

Leave a comment

Categories

(c) Techieshelp.com. Please be aware, all information is provided freely, any information used is done so at your risk and Techieshelp will not be held responsible for any issue that may occur.
!-- BuySellAds On-Site Shopping Cart -->