Ouvrir dans l'explorateur

Unsafe 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.

Type
Utilisateur
Chemin GPO
Configuration utilisateur › Stratégies › Modèles d'administration › Microsoft Office 2016 › Paramètres de sécurité › Centre de gestion de la confidentialité › Mode protégé EN : User Configuration › Policies › Administrative Templates › Microsoft Office 2016 › Security Settings › Trust Center › Protected View
Pris en charge sur
At least Windows Server 2008 R2 or Windows 7
Fichier ADMX
office16.admx
Nom interne
office16/L_UnsafeLoc14

Explication

This policy setting allows you to specify a location containing files that should always open in Protected View.

If you enable this policy setting, you can specify a location containing files that always open in Protected View. If you check the "Allow sub folders" option, sub folders will also be included.

If you disable or do not configure this policy setting, only the "Downloaded Program Files" and "Temporary Internet Files" folders will be considered unsafe locations.

Registre

HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\common\security\protectedview\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 : office16/L_UnsafeLoc14
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\security\protectedview\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
# Allow sub folders
# décoché : 0
Set-ItemProperty -Path $k -Name 'allowsubfolders' -Value 1 -Type DWord

Désactiver

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

Revenir à « Non configuré »

# Revenir à « Non configuré » : office16/L_UnsafeLoc14
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\security\protectedview\locations\location14'
Remove-ItemProperty -Path $k -Name 'path' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'allowsubfolders' -ErrorAction SilentlyContinue

Options (2)

LibelléContrôleValeur de registreType REGContraintes / détails
Path:L_Pathcolon14Zone de textetextpathREG_EXPAND_SZ
Allow sub folders:L_Allowsubfolders14Case à 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.