How to turn off Junkmail in office 365

How to turn off Junkmail in office 365

 

To apply these settings to your entire organization in Office 365 you will need to login to office365 via PowerShell.

Launch PowerShell and enter the following to login:

 

$UserCredential = Get-Credential (This will prompt your for username and password)

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

Import-PSSession $Session

 

If you get an error when Importing PSSession on Office365

 

Type: Set-ExecutionPolicy RemoteSigned

 

Once that is set:

Type Get-Mailbox to see if you see all the mailboxes, if you do you are now ready to turn off Junkmail.

 

Type Get-Mailbox | Set-MailboxJunkEmailConfiguration –Enabled $False

When this function is complete, you will return to the Powershell prompt.  (Please be patient it could take a little time.)

 

 

Kon Belieu

SCS Technologies

 

 

Tags:

Comments are closed

Latest Comments

No comments to show.