12Knocksinna / Office365itpros

Office 365 for IT Pros PowerShell examples
MIT License
1.28k stars 567 forks source link

Update FindAccountsWithForwarding.PS1 #52

Closed iainwyatt closed 2 years ago

iainwyatt commented 2 years ago

Added check for redirectto rule and gathering of whether a rule is enabled.

I was testing and found this missed redirect to rules, plus it was finding rules that weren't actually enabled, so I've added that to the report line properties.

I might suggest commenting out the remove-inboxrule command - I missed it when I first scanned the script and was slightly surprised when it did actually remove a rule in place... (note to self, read script more thoroughly next time... :) )