Office Admin Explorer

Security setting for macros

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
level
Group PolicySecurity setting for macros
German versionSicherheitseinstellung für Makros
Intune settings catalogSecurity setting for macros (User) (Deprecated)
ScopeUser · HKCU
ADMXoutlk16.admx · L_SecurityLevelOutlook
Open in the interactive explorer+ Add to my collection

Group Policy path

User Configuration\Policies\Administrative Templates\Microsoft Outlook 2016\Security\Trust Center
Benutzerkonfiguration\Richtlinien\Administrative Vorlagen\Microsoft Outlook 2016\Sicherheit\Trust Center

Registry

ValueData
HKCU\Software\policies\microsoft\office\16.0\outlook\security
level2 = Always warn · 4 = Never warn, disable all · 3 = Warn for signed, disable unsigned · 1 = No security check

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\security"
foreach ($name in @('level')) {
    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\security"
    if (-not (Test-Path $key)) { New-Item -Path $key -Force -ErrorAction Stop | Out-Null }
    New-ItemProperty -Path $key -Name 'level' -PropertyType DWord -Value 2 -Force -ErrorAction Stop | Out-Null   # options: 2 = Always warn, 4 = Never warn, disable all, 3 = Warn for signed, disable unsigned, 1 = No security check
    '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\security"
Remove-ItemProperty -Path $key -Name 'level' -ErrorAction SilentlyContinue
'Policy values removed (Not configured).'

Intune (settings catalog)

Security setting for macros (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/outlk16v2~Policy~L_MicrosoftOfficeOutlook~L_Security~L_TrustCenter/L_SecurityLevelOutlook
Data typeString
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 Security setting for macros. It also applies to unmanaged devices and wins over GPO and Intune for the same setting.

Microsoft explanation

This policy setting controls the security level for macros in Outlook.

If you enable this policy setting, you can choose from four options for handling macros in Outlook:

- Always warn. This option corresponds to the "Notifications for all macros" option in the "Macro Settings" section of the Outlook Trust Center. Outlook disables all macros that are not opened from a trusted location, even if the macros are signed by a trusted publisher. For each disabled macro, Outlook displays a security alert dialog box with information about the macro and its digital signature (if present), and allows users to enable the macro or leave it disabled.

- Never warn, disable all. This option corresponds to the "Disable all macros without notification" option in the Trust Center. Outlook disables all macros that are not opened from trusted locations, and does not notify users.

- Warning for signed, disable unsigned. This option corresponds to the "Notifications for digitally signed macros, all other macros disabled" option in the Trust Center. Outlook handles macros as follows:

--If a macro is digitally signed by a trusted publisher, the macro can run if the user has already trusted the publisher.

--If a macro has a valid signature from a publisher that the user has not trusted, the security alert dialog box for the macro lets the user choose whether to enable the macro for the current session, disable the macro for the current session, or to add the publisher to the Trusted Publishers list so that it will run without prompting the user in the future.

--If a macro does not have a valid signature, Outlook disables it without prompting the user, unless it is opened from a trusted location.

This option is the default configuration in Outlook.

- No security check. This option corresponds to the "Enable all macros (not recommended; potentially dangerous code can run)" option in the Trust Center. Outlook runs all macros without prompting users. This configuration makes users' computers vulnerable to potentially malicious code and is not recommended.

If you disable or do not configure this policy setting, the behavior is the equivalent of Enabled -- Warning for signed, disable unsigned.

Same category: Microsoft Outlook 2016 › Security › Trust Center

All policies in this category · All 406 policies of outlk16.admx