Disable Inbox rules following O365 Migration

Having migrated some mailboxes from an On prem Exch 2016 server to O365 2 mailboxes have re-enabled old rules that forward all mail.  The rules don't appear in Outlook so cannot be disabled.

To Powershell we go, first connect PowerShell to EoL as detailed here

Now run the following command:


Get-InboxRule -Mailbox "<mailbox alias>"

to get a list of rules:

Here we can see the offending rule where my name is in the To or CC box

then run the following:

Disable-InboxRule -Identity <mailboxAlias>\<RuleIdentity>

This will disable the rule:

Comments