- Disable Junk Mail filtering in the Outlook Application
- Disable Junk Mail filtering in Office 365 on the individual level
- Disable Junk Mail filtering in Office 365 on the Company level with PowerShell
Disable Junk Mail filtering in the Outlook application:
To disable Junk Filtering in Outlook, first click on the “Home” tab, then choose Junk and “Junk E-Mail Options.” Then choose your filter level.
Disable Junk Mail filtering in Office 365 on the individual level:
To change this setting on the individual level, you will need to login to your Exchange Online account and click the Gear located in the top right.
To apply these settings to your entire organization in Office 365 you will need to login to Exchange Online via PowerShell.
To do this, launch PowerShell and enter the following to login:
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
You can then test your connection by typing the command below. It will display mailbox information if you are connected:
Get-Mailbox
Now you are ready to make the change. The command below will turn off Junk Mail filtering for all users in the company. If there are service mailboxes in use that have never been logged into, you will see errors for those accounts when the change is attempted to be applied there. The script will then move on the the next mailbox until completion.
Get-Mailbox | Set-MailboxJunkEmailConfiguration –Enabled $False
When this function is complete, you will return to the Powershell prompt. To verify your work you can use option two above to login and verify changes have been made to sample users.
Leave a Reply