I'm using the following Powershell script to search for users that are using
rules to either forward or redirect email outside of the company:
# foreach ($i in (Get-Mailbox -ResultSize unlimited)) {Get-InboxRule -Mailbox
$i.DistinguishedName | where {$_.ForwardTo} | fl MailboxOwnerID,Name,ForwardTo
>> C:\downloads\ForwardRules.txt }
While it runs this script I get a lot of warnings of "The Inbox rule
"Blahblahblah" contains errors. To resolve the error, please edit the rule or
re-create it."
Very informative. not. I have no idea which mailbox to look at. Is there a
way to refine the script, or is there another script that can be run that will
tell me who has rules that have problems?
Everything that I've found online talks about going into Outlook. I haven't
found anything using PowerShell.
Thanks!
Paul