In scenarios where an exchange online user is unable to delete inbox rules via outlook, use the following PowerShell commands to delete an specific or all rules from users mailbox.
- Connect with Exchange Online in elevated PowerShell windows
Connect-ExchangeOnline
- To get all rules in user's mailbox,
Get-InboxRule -Mailbox <user@domain.com>
- To delete an specific rule
Remove-InboxRule -Mailbox 'user@domain.com' -Identity "Rule Name"
- To remove all rules from a user's mailbox
Get-InboxRule -mailbox user@domain.com | Remove-InboxRule
Comments
0 comments
Please sign in to leave a comment.