Last updated: 27 July 2026
This article shows you how to set up junk mail settings for a mailbox on Office 365.
Need to know how to connect - how to connect to Office 365 using Powershell
More options can be found here - https://docs.microsoft.com/en-us/powershell/module/exchange/antispam-antimalware/set-mailboxjunkemailconfiguration?view=exchange-ps