Open in the explorer

Set Outlook object model custom actions execution prompt

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Microsoft Outlook 2016 › Security › Security Form Settings › Custom Form Security
Supported on
At least Windows Server 2008 R2 or Windows 7
ADMX file
outlk16.admx
Internal name
outlk16/L_OnExecuteCustomActionOOM

Explanation

This policy setting controls whether Outlook prompts users before executing a custom action. Custom actions add functionality to Outlook that can be triggered as part of a rule. Among other possible features, custom actions can be created that reply to messages in ways that circumvent the Outlook model's programmatic send protections.

If you enable this policy setting, you can choose from four options to control how Outlook functions when a custom action is executed that uses the Outlook object model:

* Prompt User
* Automatically Approve
* Automatically Deny
* Prompt user based on computer security. This option enforces the default configuration in Outlook.

If you disable or do not configure this policy setting, when Outlook or another program initiates a custom action using the Outlook object model, users are prompted to allow or reject the action. If this configuration is changed, malicious code can use the Outlook object model to compromise sensitive information or otherwise cause data and computing resources to be at risk. This is the equivalent of choosing Enabled -- Prompt user based on computer security.

Registry

HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\security
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: outlk16/L_OnExecuteCustomActionOOM
$k = 'HKCU:\software\policies\microsoft\office\16.0\outlook\security'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# When executing a custom action
# Possible options:
#   Prompt User = 1
#   Automatically Approve = 2
#   Automatically Deny = 0
#   Prompt user based on computer security = 3
Set-ItemProperty -Path $k -Name 'promptoomcustomaction' -Value 3 -Type DWord

Disable

# Disable: outlk16/L_OnExecuteCustomActionOOM
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": outlk16/L_OnExecuteCustomActionOOM
$k = 'HKCU:\software\policies\microsoft\office\16.0\outlook\security'
Remove-ItemProperty -Path $k -Name 'promptoomcustomaction' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
When executing a custom action:L_OnExecuteCustomActionOOM_SettingDrop-down listenumpromptoomcustomactionREG_DWORD
Default choice (UI): #3
LabelValue
Prompt UserREG_DWORD = 1
Automatically ApproveREG_DWORD = 2
Automatically DenyREG_DWORD = 0
Prompt user based on computer securityREG_DWORD = 3

Application

Microsoft 365 Apps / Office (Microsoft) — November 2026 templates

Official templates downloaded on November 12, 2026.