Autoriser le mappage des dossiers dans Bac à sable Windows : valeur de Registre AllowMappedFolders et 1 autresOrdinateurHKLM\SOFTWARE\Policies\Microsoft\Windows\Sandbox

ID de stratégie
AllowMappedFolders
Étendue
Configuration ordinateur
Pris en charge sur
Au moins Windows 11 Professionnel, Enterprise ou Education avec Bac à sable Windows
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Catégorie
Composants Windows › Bac à sable Windows

Registre

AllowMappedFolders

REG_DWORDOrdinateur
Valeur si activée
1
Valeur si désactivée
0
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Sandbox]

; Options (en utiliser une seule)
; Activé
"AllowMappedFolders"=dword:00000001
; Désactivé
"AllowMappedFolders"=dword:00000000
CMD
:: Options (en utiliser une seule)

:: Activé
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Sandbox" /v "AllowMappedFolders" /t REG_DWORD /d 1 /f
:: Désactivé
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Sandbox" /v "AllowMappedFolders" /t REG_DWORD /d 0 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Sandbox' -Force | Out-Null

# Options (en utiliser une seule)
# Activé
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Sandbox' -Name 'AllowMappedFolders' -PropertyType DWord -Value 1 -Force | Out-Null
# Désactivé
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Sandbox' -Name 'AllowMappedFolders' -PropertyType DWord -Value 0 -Force | Out-Null

AllowWriteToMappedFolders

REG_DWORDOrdinateur
Cochée
1
Décochée
0
Élément
Autorisez le bac à sable à écrire dans les dossiers mappés.
Type de valeur
REG_DWORD
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Sandbox]

; Options (en utiliser une seule)
; Cochée
"AllowWriteToMappedFolders"=dword:00000001
; Décochée
"AllowWriteToMappedFolders"=dword:00000000
CMD
:: Options (en utiliser une seule)

:: Cochée
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Sandbox" /v "AllowWriteToMappedFolders" /t REG_DWORD /d 1 /f
:: Décochée
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Sandbox" /v "AllowWriteToMappedFolders" /t REG_DWORD /d 0 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Sandbox' -Force | Out-Null

# Options (en utiliser une seule)
# Cochée
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Sandbox' -Name 'AllowWriteToMappedFolders' -PropertyType DWord -Value 1 -Force | Out-Null
# Décochée
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Sandbox' -Name 'AllowWriteToMappedFolders' -PropertyType DWord -Value 0 -Force | Out-Null