- Select a category.
Allow scripts in one-off Outlook forms
This policy setting controls whether scripts can run in Outlook forms in which the script and layout are contained within the message.
If you enable this policy setting, scripts can run in one-off Outlook forms.
If you disable or do not configure this policy setting, Outlook does not run scripts in forms in which the script and the layout are contained within the message.
Important: This policy setting only applies if the "Outlook Security Mode" policy setting under "Microsoft Outlook 2016SecuritySecurity Form Settings" is configured to "Use Outlook Security Group Policy."
Registry Information
| Vendor | Microsoft |
|---|---|
| Product | Microsoft Outlook 2016 |
| Category | Microsoft Outlook 2016 › Security › Security Form Settings › Custom Form Security |
| Applies to | User Configuration |
| Supported on | Windows7 |
| Registry Key | [HKCU]softwarepoliciesmicrosoftoffice16.0outlooksecurity |
| Value Name | enableoneoffformscripts |
| Type | REG_DWORD |
| Enabled value | 1 |
| Disabled value | 0 |
Registry File (.reg)
Windows Registry Editor Version 5.00
; Enable the policy
[HKEY_CURRENT_USERsoftwarepoliciesmicrosoftoffice16.0outlooksecurity]
"enableoneoffformscripts"=dword:00000001
; Disable the policy
[HKEY_CURRENT_USERsoftwarepoliciesmicrosoftoffice16.0outlooksecurity]
"enableoneoffformscripts"=dword:00000000PowerShell
# Enable the policy
Set-ItemProperty -Path "HKCU:softwarepoliciesmicrosoftoffice16.0outlooksecurity" -Name "enableoneoffformscripts" -Value 1 -Type DWord
# Disable the policy
Set-ItemProperty -Path "HKCU:softwarepoliciesmicrosoftoffice16.0outlooksecurity" -Name "enableoneoffformscripts" -Value 0 -Type DWord