Allow mapping folders into Windows Sandbox
Supported on: At least Windows 11 Pro, Enterprise, or Education with Windows Sandbox
Registry
SOFTWARE\Policies\Microsoft\Windows\Sandbox Value name: AllowMappedFolders
Enabled: AllowMappedFolders = 1
Disabled: AllowMappedFolders = 0
Options
AllowWriteToMappedFolders boolean Description
This policy setting enables or disables mapping folders into sandbox. If you enable this policy setting, mapping folders from the host into Sandbox will be permitted. If you enable this policy setting and disable write to mapped folders, mapping folders from the host into Sandbox will be permitted, but Sandbox will only have permission to read the files. If you disable this policy setting, mapping folders from the host into Sandbox will not be permitted. If you do not configure this policy setting, mapped folders will be enabled. Note that there may be security implications of exposing folders from the host into the container.