- Abdul
Office 365 - Disable Junk Email Filtering
When you have good Anti-Spam solution in place you may want to disable junk email filtering in Office 365. I will show you how to disable junk email filtering in this blog.
Connect to Office 365 Exchange Online PowerShell and run the following cmdlets.
To disable it for all users in the tenant, run the following cmdlets.
$AllUsers = Get-Mailbox -RecipientTypeDetails UserMailbox -ResultSize Unlimited
$AllUsers | Foreach {Set-MailboxJunkEmailConfiguration $_.Name -Enabled $false}
To disable it for a user:
Set-MailboxJunkEmailConfiguration -Identity "John Smith" -Enabled $false
To get status of junk email filtering for all users:
Get-Mailbox -ResultSize Unlimited | Get-MailboxJunkEmailConfiguration | ft Identity, Status, Enabled -AutoSize
To get status of junk email filtering for a user:
Get-MailboxJunkEmailConfiguration -Identity "John Smith" | fl