Open in the explorer

Allow file group descriptor operations to write to any destination path

Autoriser les opérations de descripteur de groupe de fichiers à écrire dans n’importe quel chemin de destination

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › File Explorer FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Explorateur de fichiers
Supported on
At least Windows Server 2012, Windows 8 or Windows RT FR: Au minimum Windows Server 2012, Windows 8 ou Windows RT
ADMX file
WindowsExplorer.admx
Internal name
WindowsExplorer/AllowAllCopyFGDDestinations

Explanation

This policy setting determines whether path traversal containment checks are enforced when writing files received via clipboard or drag-drop file group descriptors (CFSTR_FILEDESCRIPTOR).

If you enable this policy setting, path traversal containment checks are not enforced and files may be written to any path reachable by the destination folder. Enable this policy only if the default behavior breaks a required workflow.

If you disable or do not configure this policy setting, file group descriptor operations enforce path containment and reject file names that attempt to escape the destination folder via relative path components.

French text from Windows 11 26H2

Ce paramètre de stratégie détermine si les vérifications d’autonomie de traversée de chemin sont appliquées lors de l’écriture de fichiers reçus via le Presse-papiers ou par glisser-déplacer des descripteurs de groupe de fichiers (CFSTR_FILEDESCRIPTOR).

Si vous activez ce paramètre de stratégie, les vérifications de l’autonomie du parcours de chemin ne sont pas appliquées et les fichiers peuvent être écrits dans n’importe quel chemin accessible par le dossier de destination. Activez cette stratégie uniquement si le comportement par défaut interrompt un flux de travail requis.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les opérations de descripteur de groupe de fichiers appliquent l’autonomie du chemin d’accès et rejettent les noms de fichiers qui tentent d’échapper du dossier de destination via des composants de chemin relatifs.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Explorer
Value name
AllowAllCopyFGDDestinations
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: WindowsExplorer/AllowAllCopyFGDDestinations
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowAllCopyFGDDestinations' -Value 1 -Type DWord

Disable

# Disable: WindowsExplorer/AllowAllCopyFGDDestinations
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowAllCopyFGDDestinations' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": WindowsExplorer/AllowAllCopyFGDDestinations
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Explorer'
Remove-ItemProperty -Path $k -Name 'AllowAllCopyFGDDestinations' -ErrorAction SilentlyContinue

Availability

Windows 11

✓ 26H2— 25H2— 24H2— 23H2— 22H2— 21H2

Windows 10

— 22H2— 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server

✓ 2025— 2022— 2016