List the mailbox which has forwarding enabled

By | December 18, 2019

If you need to list all mailboxes which are being forward to another mails address, you can use get-mailbox with a search query This is another useful command to run during the security audit to find users who are forwarding all their mailbox to personal account or other account.

Below we are returning all mailboxes where the forwarding addresses are not set to null.  In other words, we are returning all-mailboxes where the forwarding options have an address set.

Get-Mailbox | Where {($_.forwardingSMTPaddress -ne $null) -or ($_.Forwardingaddress -ne $NULL)} | select name, forwardingSMTPaddress, Forwardingaddress, Delivertomailboxandforward

Leave a Reply

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