O-Xchange Notes from the Field!

Thursday, November 3, 2016

Capture forwards rules for all mailboxes

Capture forwards rules for all mailboxes

Powershell liner to capture forward rules for all mailboxes:


ForEach ($m in (Get-Mailbox -ResultSize Unlimited)) { Get-InboxRule -Mailbox $m.DistinguishedName | where { $_.ForwardTo } | fl MailboxOwnerID,Name,ForwardTo >> D:\inboxrules.txt }

No comments:

Post a Comment