VBA Macro Notification Settings
| Registry value | vbawarnings |
| Group Policy | VBA Macro Notification Settings |
| German version | Benachrichtigungseinstellungen für VBA-Makros |
| Intune settings catalog | VBA Macro Notification Settings (User) |
| Scope | User · HKCU |
| ADMX | proj16.admx · L_VBAWarningsPolicy |
Group Policy path
Registry
| Value | Data |
|---|---|
HKCU\Software\policies\microsoft\office\16.0\ms project\security | |
| vbawarnings | 2 = Disable all with notification · 3 = Disable all except digitally signed macros · 4 = Disable all without notification · 1 = Enable all macros (not recommended) |
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\ms project\security"
foreach ($name in @('vbawarnings')) {
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\ms project\security"
if (-not (Test-Path $key)) { New-Item -Path $key -Force -ErrorAction Stop | Out-Null }
New-ItemProperty -Path $key -Name 'vbawarnings' -PropertyType DWord -Value 2 -Force -ErrorAction Stop | Out-Null # options: 2 = Disable all with notification, 3 = Disable all except digitally signed macros, 4 = Disable all without notification, 1 = Enable all macros (not recommended)
'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\ms project\security" Remove-ItemProperty -Path $key -Name 'vbawarnings' -ErrorAction SilentlyContinue 'Policy values removed (Not configured).'
Intune (settings catalog)
VBA Macro Notification Settings (User)
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/proj16v2~Policy~L_Proj~L_ProjectOptions~L_Security~L_TrustCenter/L_VBAWarningsPolicy |
| Data type | String |
| 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 VBA Macro Notification Settings. It also applies to unmanaged devices and wins over GPO and Intune for the same setting.
Microsoft explanation
This policy setting controls how the specified applications warn users when Visual Basic for Applications (VBA) macros are present.
If you enable this policy setting, you can choose from four options for determining how the specified applications will warn the user about macros:
- Disable all with notification: The application displays the Trust Bar for all macros, whether signed or unsigned. This option enforces the default configuration in Office.
- Disable all except digitally signed macros: The application displays the Trust Bar for digitally signed macros, allowing users to enable them or leave them disabled. Any unsigned macros are disabled, and users are not notified.
- Disable all without notification: The application disables all macros, whether signed or unsigned, and does not notify users.
- Enable all macros (not recommended): All macros are enabled, whether signed or unsigned. This option can significantly reduce security by allowing dangerous code to run undetected.
If you disable this policy setting, "Disable all with notification" will be the default setting.
If you do not configure this policy setting, when users open files in the specified applications that contain VBA macros, the applications open the files with the macros disabled and display the Trust Bar with a warning that macros are present and have been disabled. Users can inspect and edit the files if appropriate, but cannot use any disabled functionality until they enable it by clicking "Enable Content" on the Trust Bar. If the user clicks "Enable Content", then the document is added as a trusted document.
Important: If "Disable all except digitally signed macros" is selected, users will not be able to open unsigned Access databases.
Also, note that Microsoft Office stores certificates for trusted publishers in the Internet Explorer trusted publisher store. Earlier versions of Microsoft Office stored trusted publisher certificate information (specifically, the certificate thumbprint) in a special Office trusted publisher store. Microsoft Office still reads trusted publisher certificate information from the Office trusted publisher store, but it does not write information to this store.
Therefore, if you created a list of trusted publishers in a previous version of Microsoft Office and you upgrade to Office, your trusted publisher list will still be recognized. However, any trusted publisher certificates that you add to the list will be stored in the Internet Explorer trusted publisher store.
Same category: Microsoft Project 2016 › Project Options › Security › Trust Center
- Disable all application add-insdisablealladdins
- Block macros from running in Office files from the internetblockcontentexecutionfrominternet
- Require that application add-ins are signed by Trusted Publisherrequireaddinsig
- Disable Trust Bar Notification for unsigned application add-ins and block themnotbpromptunsignedaddin
- Allow Trusted Locations on the networkallownetworklocations
- Disable all trusted locationsalllocationsdisabled
- Trusted Location #1path
- Trusted Location #2path
- Trusted Location #3path
- Trusted Location #4path
- Trusted Location #5path
- Trusted Location #6path
All policies in this category · All 140 policies of proj16.admx