Ouvrir dans l'explorateur

Publisher Automation Security Level

Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.

Type
Utilisateur
Chemin GPO
Configuration utilisateur › Stratégies › Modèles d'administration › Microsoft Publisher 2016 › Sécurité EN : User Configuration › Policies › Administrative Templates › Microsoft Publisher 2016 › Security
Pris en charge sur
At least Windows Server 2008 R2 or Windows 7
Fichier ADMX
pub16.admx
Nom interne
pub16/L_PublisherAutomationSecurityLevel

Explication

This policy setting controls whether macros opened programmatically by another application can run in Publisher.

If you enable this policy setting, you may choose an option for controlling macro behavior in Publisher when the application is opened programmatically:

- Low (enabled): Macros can run in the programmatically opened application.
- By UI (prompted): Macro functionality is determined by the setting in the "Macro Settings" section of the Trust Center.
- High (disabled): All macros are disabled in the programmatically opened application.

If you disable or do not configure this policy setting, Publisher will use the default Macro setting in Trust Center.

Registre

HKEY_CURRENT_USER\software\policies\microsoft\office\common\security
Nom de la valeur
non défini dans l'ADMX

Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : pub16/L_PublisherAutomationSecurityLevel
$k = 'HKCU:\software\policies\microsoft\office\common\security'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
#
# Options possibles :
#   Low (enabled) = 1
#   By UI (prompted) = 2
#   High (disabled) = 3
Set-ItemProperty -Path $k -Name 'automationsecuritypublisher' -Value 2 -Type DWord

Désactiver

# Désactiver : pub16/L_PublisherAutomationSecurityLevel
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)

Revenir à « Non configuré »

# Revenir à « Non configuré » : pub16/L_PublisherAutomationSecurityLevel
$k = 'HKCU:\software\policies\microsoft\office\common\security'
Remove-ItemProperty -Path $k -Name 'automationsecuritypublisher' -ErrorAction SilentlyContinue

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
L_EmptyListe déroulanteenumautomationsecuritypublisherREG_DWORD
Choix par défaut (interface) : n° 1
LibelléValeur
Low (enabled)REG_DWORD = 1
By UI (prompted)REG_DWORD = 2
High (disabled)REG_DWORD = 3

Application

Microsoft 365 Apps / Office (Microsoft) — modèles de novembre 2026

Modèles officiels téléchargés le 12 novembre 2026.