Junk E-mail protection level
Classic Outlook only. The new Outlook for Windows ignores most of these Office policies – it is configured through Exchange Online (OWA mailbox policy) instead.
| Registry value | junkmailprotection |
| Group Policy | Junk E-mail protection level |
| German version | Junk-E-Mail-Schutzstufe |
| Intune settings catalog | Junk E-mail protection level (User) (Deprecated) |
| Scope | User · HKCU |
| ADMX | outlk16.admx · L_JunkEmailprotectionlevel |
Group Policy path
Registry
| Value | Data |
|---|---|
HKCU\Software\policies\microsoft\office\16.0\outlook\options\mail | |
| junkmailprotection | 4294967295 = No Protection · 6 = Low (Default) · 3 = High · 2147483648 = Trusted Lists Only |
Not configured = the value does not exist – the application default applies and users may change the setting.
PowerShell
Check the current value (read-only)
# --- Settings ---
$root = 'HKCU:' # other signed-in user (elevated): 'Registry::HKEY_USERS\<SID>'
$key = "$root\Software\policies\microsoft\office\16.0\outlook\options\mail"
foreach ($name in @('junkmailprotection')) {
try { '{0} = {1}' -f $name, (Get-ItemPropertyValue -Path $key -Name $name -ErrorAction Stop) }
catch { '{0}: not configured' -f $name }
}Admin rights needed: HKCU\Software\Policies is read-only for standard users. An elevated session writes to the admin's own HKCU – to set it for another signed-in user, change $root to Registry::HKEY_USERS\<SID>.
Enable
# --- Settings ---
$root = 'HKCU:' # other signed-in user (elevated): 'Registry::HKEY_USERS\<SID>'
try {
$key = "$root\Software\policies\microsoft\office\16.0\outlook\options\mail"
if (-not (Test-Path $key)) { New-Item -Path $key -Force -ErrorAction Stop | Out-Null }
New-ItemProperty -Path $key -Name 'junkmailprotection' -PropertyType DWord -Value 4294967295 -Force -ErrorAction Stop | Out-Null # options: 4294967295 = No Protection, 6 = Low (Default), 3 = High, 2147483648 = Trusted Lists Only
'Done.'
}
catch { Write-Error "Failed: $($_.Exception.Message)" }Reset to Not configured
# --- Settings --- $root = 'HKCU:' # other signed-in user (elevated): 'Registry::HKEY_USERS\<SID>' $key = "$root\Software\policies\microsoft\office\16.0\outlook\options\mail" Remove-ItemProperty -Path $key -Name 'junkmailprotection' -ErrorAction SilentlyContinue 'Policy values removed (Not configured).'
Intune (settings catalog)
Junk E-mail protection level (User) (Deprecated) deprecated in Intune
Settings catalog → Add settings → search for the name above.
Intune Settings Catalog Viewer ↗
Alternative: custom profile (OMA-URI)
| OMA-URI | ./User/Vendor/MSFT/Policy/Config/outlk16v6~Policy~L_MicrosoftOfficeOutlook~L_OutlookOptions~L_Preferences~L_JunkEmail/L_JunkEmailprotectionlevel |
| Data type | String |
| Value | <enabled/> · <disabled/> |
This policy has options: add one <data id="…" value="…"/> per element after <enabled/>. The element IDs are in the ADMX file.
Cloud Policy
Cloud Policy (config.office.com → Customization → Policy Management) offers many user policies of the Microsoft 365 Apps – search for Junk E-mail protection level. It also applies to unmanaged devices and wins over GPO and Intune for the same setting.
Microsoft explanation
This policy setting controls your Junk E-mail protection level. The Junk E-mail Filter in Outlook helps to prevent junk e-mail messages, also known as spam, from cluttering user's Inbox. The filter evaluates each incoming message based on several factors, including the time when the message was sent and the content of the message. The filter does not single out any particular sender or message type, but instead analyzes each message based on its content and structure to discover whether or not it is probably spam.
If you enable this policy setting, you can select one of the four listed options available. After you select an option, users will not be able to change it.
If you disable this policy setting, Outlook reverts to the user-defined protection level.
If you do not configure this policy setting, users can change their junk e-mail filtering options.
Same category: Microsoft Outlook 2016 › Outlook Options › Preferences › Junk E-mail
- Hide Junk Mail UIdisableantispam
- Hide warnings about suspicious domain names in e-mail addressesoutlookenablespoofyemails
- Permanently delete Junk E-mailjunkmailpermdelete
- Trust e-mail from contactsjunkmailtrustcontacts
- Add e-mail recipients to users' Safe Senders Listsjunkmailtrustoutgoingrecipients
- Trigger to apply junk email list settingsjunkmailimportlists
- Overwrite or Append Junk Mail Import Listjunkmailimportappend
- Specify path to Safe Senders listjunkmailsafesendersfile
- Specify path to Safe Recipients listjunkmailsaferecipientsfile
- Specify path to Blocked Senders listjunkmailblockedsendersfile
All policies in this category · All 406 policies of outlk16.admx