fr-FR office user

Block all internet macros (ignore trusted locations or publishers)

Vérifié avec Microsoft 365/Office 5568.1000 — mis à jour le 10 juillet 2026

Microsoft 365/Office 5568.1000

Pris en charge sur : Au moins Windows Server 2016, Windows 10

Chemin dans la console GPO

Configuration utilisateur\Modèles d'administration\Microsoft Office 2016\Paramètres de sécurité

Description

This policy setting removes the trusted location and trusted publisher exceptions for files downloaded from the internet with Mark of the Web (MOTW). By default, Office blocks macros from the internet but allows exceptions for files that are either in trusted locations or signed by trusted publishers. If you enable this policy setting, all macros in files downloaded from the internet will be blocked, including those in trusted locations or signed by trusted publishers. This provides maximum protection against internet-based macro threats. If you disable or don't configure this policy setting, the default behavior applies where macros from the internet are blocked except when the file is in a trusted location or signed by a trusted publisher.

Registre

HKCU software\policies\microsoft\office\16.0\common\security

Nom de valeur : blockmotwmacrointrustedorsigned

Activé : blockmotwmacrointrustedorsigned = 1

Désactivé : blockmotwmacrointrustedorsigned = 0

Générateur d'exports

BETA

Configurez l'état, la portée et les options, puis générez les sorties .reg, PowerShell, Intune et SCCM — ou ajoutez le paramètre à une collection multi-paramètres.

Ces exports écrivent le registre — ce n'est pas une GPO managée.

Fichier .reg

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Block all internet macros (ignore trusted locations or publishers)
; State: Enabled
; Supported on: Au moins Windows Server 2016, Windows 10

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\common\security]
"blockmotwmacrointrustedorsigned"=dword:00000001
Autres formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Block all internet macros (ignore trusted locations or publishers)
# State: Enabled
# Supported on: Au moins Windows Server 2016, Windows 10
# Warning: In SYSTEM context (the Intune default), HKCU targets the SYSTEM profile. Run this script using the logged-on credentials.

$path = 'HKCU:\software\policies\microsoft\office\16.0\common\security'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'blockmotwmacrointrustedorsigned' -Value 1 -Type DWord

Vous construisez une collection multi-paramètres ? Ajoutez ce paramètre et générez des exports combinés (.reg, PowerShell, GPO).

Ouvrir le Builder

Intégrer cette GPO sur votre site

Contenu à intégrer
Thème

Ajoute une ligne de script : le thème suit l’apparence de votre site et la hauteur s’ajuste au contenu. Si votre site bloque les scripts, l’intégration suit le thème du système du visiteur.

Aperçu