Trusted Location #14
Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.
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\visio\security\trusted locations\location14- 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 : visio16/L_TrustedLoc14
$k = 'HKCU:\software\policies\microsoft\office\16.0\visio\security\trusted locations\location14'
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 DWordDésactiver
# Désactiver : visio16/L_TrustedLoc14
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)Revenir à « Non configuré »
# Revenir à « Non configuré » : visio16/L_TrustedLoc14
$k = 'HKCU:\software\policies\microsoft\office\16.0\visio\security\trusted locations\location14'
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 SilentlyContinueOptions (4)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails |
|---|---|---|---|---|
| Path:L_pathcolon60 | Zone de textetext | path | REG_EXPAND_SZ | |
| Date:L_datecolon61 | Zone de textetext | date | REG_SZ | |
| Description:L_descriptioncolon62 | Zone de textetext | description | REG_SZ | |
| Allow sub folders:L_allowsubfolders63 | Case à cocherboolean | allowsubfolders | REG_DWORD | Coché : REG_DWORD = 1Dé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.