Microsoft Exchange Online: How to check User Inbox Rules using PowerShell?
Microsoft Exchange Online
Query: Hey, can we check remote user inbox rule settings?
Solution: Yep, it's possible using PowerShell.
Scenario: Multiple cases reported to Service Desk for rule setting issues. Before calling back user for fixing the issue. Using PowerShell is the BEST way to sort out the root cause.
Connect to Exchange Online:
Import-Module MSOnline
$O365Cred = Get-Credential
$O365Session = New-PSSession –ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell [This link is external to TechNet Wiki. It will open in a new window.] -Credential $O365Cred -Authentication Basic -AllowRedirection
Import-PSSession $O365Session
Connect-MsolService –Credential $O365Cred
PowerShell Command to Check Inbox Settings:
Get-InboxRule -Mailbox "MailBoxName"
To get Information with Rule Name:
Get-InboxRule -Mailbox "MailBoxName" -Identity "Data Center News" | Select -Property *