List mail forwarding information of all Office 365 users.

nav2567
nav2567 used Ask the Experts™
on
Hello,

I am trying to list the "Email Forwarding" information of all of our Office 365 users and export the information to a CSV file.  

I tried to look up the parameter of what I should add after $msoluser but not successful yet.  

Do someone know the command that I need to use?

Thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2015
Distinguished Expert 2018
Commented:
I've published a script that prepares report of all users with any form of forwarding configured (including inbox and transport rules) here: https://gallery.technet.microsoft.com/Office-365-Mailbox-959f4ce5?redir=0

Author

Commented:
I am able to modify my script and use the get-mailbox command with forwardingaddress to do it.  

By the way, is there a document that list the fields that I can choose from for the GET-MAILBOX, GET-MSOLUSER, and GET-MAILBOXSTATISTICS commands?

Thanks.
timgreen7077Exchange Engineer
Distinguished Expert 2018
Commented:
In the Exchange shell or in the O365 shell you can run the following for either of the cmdlets and it will give you the properties:

Get-Mailbox | Get-Member

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial