Open in the explorer

Macro security level

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Collabora Office › Common › Security User Configuration › Policies › Administrative Templates › Collabora Office › Common › Security
Supported on
LibreOffice-from-Collabora 4.2 or higher
ADMX file
Collabora-Office.admx
Internal name
Collabora-Office/MacroSecurityLevel

Explanation

Level of Macro security. Range 0 (lowest) - 3 (highest).

- Low (not recommended). All macros will be executed without confirmation. Use this setting only if you are certain that all documents that will be opened are safe.
- Medium. Confirmation required before executing macros from untrusted sources.
- High. Only signed macros from trusted sources are allowed to run. Unsigned macros are disabled.
- Very high. Only macros from trusted file locations are allowed to run. All other macros, regardless whether signed or not, are disabled.

Default value: High

Registry

HKEY_LOCAL_MACHINE\Software\Policies\LibreOffice\org.openoffice.Office.Common\Security\Scripting\MacroSecurityLevel
HKEY_CURRENT_USER\Software\Policies\LibreOffice\org.openoffice.Office.Common\Security\Scripting\MacroSecurityLevel
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.

Computer (HKLM)

Enable

# Enable: Collabora-Office/MacroSecurityLevel
$k = 'HKLM:\Software\Policies\LibreOffice\org.openoffice.Office.Common\Security\Scripting\MacroSecurityLevel'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Macro security level
# Possible options:
#   Low (not recommended) = 0
#   Medium = 1
#   High = 2
#   Very high = 3
Set-ItemProperty -Path $k -Name 'Value' -Value '2' -Type String
# Final
# value not defined in the ADMX (the GPO editor usually writes 1/0)
# 1 = checked, 0 = unchecked; default state taken from the ADML
Set-ItemProperty -Path $k -Name 'Final' -Value 1 -Type DWord

Disable

# Disable: Collabora-Office/MacroSecurityLevel
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Collabora-Office/MacroSecurityLevel
$k = 'HKLM:\Software\Policies\LibreOffice\org.openoffice.Office.Common\Security\Scripting\MacroSecurityLevel'
Remove-ItemProperty -Path $k -Name 'Value' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Final' -ErrorAction SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Options (2)

LabelControlRegistry valueREG typeConstraints / details
Macro security level:ValueDrop-down listenumValueREG_SZ
Default choice (UI): #2
LabelValue
Low (not recommended)REG_SZ = 0
MediumREG_SZ = 1
HighREG_SZ = 2
Very highREG_SZ = 3
FinalFinalCheck boxbooleanFinalREG_DWORD
Checked: implicit: 1
Unchecked: implicit: 0

Application

Collabora Office / LibreOffice (Collabora) — November 2026 templates

Official templates downloaded on November 12, 2026.