Security setting for macros: registry value levelUserHKCU\software\policies\microsoft\office\16.0\outlook\security

Policy ID
L_SecurityLevelOutlook
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 › Security › Trust Center

Registry

level

REG_DWORDUser
Enabled value
Depends on the option value
Element
Security Level
Options
ItemStored value
Always warn2
Never warn, disable all4
Warn for signed, disable unsigned3
No security check1
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\security]

; Options (use only one)
; Always warn
"level"=dword:00000002
; Never warn, disable all
"level"=dword:00000004
; Warn for signed, disable unsigned
"level"=dword:00000003
; No security check
"level"=dword:00000001
CMD
:: Options (use only one)

:: Always warn
reg add "HKCU\software\policies\microsoft\office\16.0\outlook\security" /v "level" /t REG_DWORD /d 2 /f
:: Never warn, disable all
reg add "HKCU\software\policies\microsoft\office\16.0\outlook\security" /v "level" /t REG_DWORD /d 4 /f
:: Warn for signed, disable unsigned
reg add "HKCU\software\policies\microsoft\office\16.0\outlook\security" /v "level" /t REG_DWORD /d 3 /f
:: No security check
reg add "HKCU\software\policies\microsoft\office\16.0\outlook\security" /v "level" /t REG_DWORD /d 1 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\security' -Force | Out-Null

# Options (use only one)
# Always warn
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\security' -Name 'level' -PropertyType DWord -Value 2 -Force | Out-Null
# Never warn, disable all
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\security' -Name 'level' -PropertyType DWord -Value 4 -Force | Out-Null
# Warn for signed, disable unsigned
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\security' -Name 'level' -PropertyType DWord -Value 3 -Force | Out-Null
# No security check
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\security' -Name 'level' -PropertyType DWord -Value 1 -Force | Out-Null