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
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert to "Not configured"
# Revert to "Not configured": WindowsExplorer/AllowAllCopyFGDDestinations
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Explorer'
Remove-ItemProperty -Path $k -Name 'AllowAllCopyFGDDestinations' -ErrorAction SilentlyContinue