I want to search all users on my tenant and then search any one has a forwarding rule that is sending/forwarding emails to a particular user
if that is for a single mail box:
Get-InboxRule -Mailbox email@example.com -> this will list all rules for a particular mail box.
Get-InboxRule -Mailbox firstname.lastname@example.org -Identity "rule1" | select -ExpandProperty Description -> this would give me the description..
if this is for a single mail box, I can work manually,
problem/need some direction for:
but I need to search all mail boxes and then find any rules on that mail box with a description "forward the message to"
not sure how do I accomplish this.. - can some one give me some direction..