Junk E-mail protection level: registry value junkmailprotectionUserHKCU\software\policies\microsoft\office\16.0\outlook\options\mail

Policy ID
L_JunkEmailprotectionlevel
Scope
User Configuration
Supported on
At least Windows Server 2008 R2 or Windows 7
Source
Microsoft 365 Apps / Office Administrative Templates (version 5568.1000)
Category
Microsoft Outlook 2016 › Outlook Options › Preferences › Junk E-mail

Registry

junkmailprotection

REG_DWORDUser
Enabled value
Depends on the option value
Element
Select level:
Options
ItemStored value
No Protection4294967295
Low (Default)6
High3
Trusted Lists Only2147483648
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\options\mail]

; Options (use only one)
; No Protection
"junkmailprotection"=dword:ffffffff
; Low (Default)
"junkmailprotection"=dword:00000006
; High
"junkmailprotection"=dword:00000003
; Trusted Lists Only
"junkmailprotection"=dword:80000000
CMD
:: Options (use only one)

:: No Protection
reg add "HKCU\software\policies\microsoft\office\16.0\outlook\options\mail" /v "junkmailprotection" /t REG_DWORD /d 4294967295 /f
:: Low (Default)
reg add "HKCU\software\policies\microsoft\office\16.0\outlook\options\mail" /v "junkmailprotection" /t REG_DWORD /d 6 /f
:: High
reg add "HKCU\software\policies\microsoft\office\16.0\outlook\options\mail" /v "junkmailprotection" /t REG_DWORD /d 3 /f
:: Trusted Lists Only
reg add "HKCU\software\policies\microsoft\office\16.0\outlook\options\mail" /v "junkmailprotection" /t REG_DWORD /d 2147483648 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\mail' -Force | Out-Null

# Options (use only one)
# No Protection
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\mail' -Name 'junkmailprotection' -PropertyType DWord -Value 4294967295 -Force | Out-Null
# Low (Default)
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\mail' -Name 'junkmailprotection' -PropertyType DWord -Value 6 -Force | Out-Null
# High
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\mail' -Name 'junkmailprotection' -PropertyType DWord -Value 3 -Force | Out-Null
# Trusted Lists Only
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\mail' -Name 'junkmailprotection' -PropertyType DWord -Value 2147483648 -Force | Out-Null