Ouvrir dans l'explorateur

Trusted Location #15

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 Word 2016 › Options Word › Sécurité › Centre de gestion de la confidentialité › Emplacements approuvés EN : User Configuration › Policies › Administrative Templates › Microsoft Word 2016 › Word Options › Security › Trust Center › Trusted Locations
Pris en charge sur
At least Windows Server 2008 R2 or Windows 7
Fichier ADMX
word16.admx
Nom interne
word16/L_TrustedLoc15

Explication

This policy setting allows you to specify a location that is used as a trusted source for opening files in this application. Files in trusted locations bypass file validation, active content checks and Protected View. Macros and code in these files will execute without displaying warnings to the user. If you change or add a location make sure that the new location is secured, with only appropriate user permissions to add document/files.

If you enable this policy setting, you may specify a folder location, path, and date from which files can the application can open files which run macros without warning. If you check the "Allow sub folders" check box, then all sub-folders in the folder you specify will also be trusted.

If you disable or do not configure this policy setting, the trusted location is not specified.

Registre

HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\word\security\trusted locations\location15
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 : word16/L_TrustedLoc15
$k = 'HKCU:\software\policies\microsoft\office\16.0\word\security\trusted locations\location15'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Path
Set-ItemProperty -Path $k -Name 'path' -Value '<valeur>' -Type ExpandString
# Date
Set-ItemProperty -Path $k -Name 'date' -Value '<valeur>' -Type String
# Description
Set-ItemProperty -Path $k -Name 'description' -Value '<valeur>' -Type String
# Allow sub folders
# décoché : 0
Set-ItemProperty -Path $k -Name 'allowsubfolders' -Value 1 -Type DWord

Désactiver

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

Revenir à « Non configuré »

# Revenir à « Non configuré » : word16/L_TrustedLoc15
$k = 'HKCU:\software\policies\microsoft\office\16.0\word\security\trusted locations\location15'
Remove-ItemProperty -Path $k -Name 'path' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'date' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'description' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'allowsubfolders' -ErrorAction SilentlyContinue

Options (4)

LibelléContrôleValeur de registreType REGContraintes / détails
Path:L_pathcolon72Zone de textetextpathREG_EXPAND_SZ
Date:L_datecolon73Zone de textetextdateREG_SZ
Description:L_descriptioncolon74Zone de textetextdescriptionREG_SZ
Allow sub folders:L_allowsubfolders75Case à cocherbooleanallowsubfoldersREG_DWORD
Coché : REG_DWORD = 1
Décoché : REG_DWORD = 0

Application

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

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