Ouvrir dans l'explorateur

Trusted Location #12

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

Explication

This policy setting allows you to specify a folder as a trusted location from which to open 2016 Word, Excel, PowerPoint, Access and Visio files. 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 can specify a trusted location (or folder) from which the 2016 Office application can open the files which run macros without warning.

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\excel\security\trusted locations\location12
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 : excel16/L_TrustedLoc12
$k = 'HKCU:\software\policies\microsoft\office\16.0\excel\security\trusted locations\location12'
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 : excel16/L_TrustedLoc12
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)

Revenir à « Non configuré »

# Revenir à « Non configuré » : excel16/L_TrustedLoc12
$k = 'HKCU:\software\policies\microsoft\office\16.0\excel\security\trusted locations\location12'
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_pathcolon45Zone de textetextpathREG_EXPAND_SZ
Date:L_datecolon46Zone de textetextdateREG_SZ
Description:L_descriptioncolon47Zone de textetextdescriptionREG_SZ
Allow sub folders:L_allowsubfolders48Case à 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.