Skip to content
Follow
Windows

How to Enable or Disable Sharing Host Folders with Windows Sandbox in Windows 11

Richard
Written by
Richard
Aug 22, 2024 Updated Aug 13, 2026 3 min read
Copilot featured image
Copilot featured image

Sharing host folders with Windows Sandbox lets you open files from your main PC inside a temporary, isolated workspace without risking your system. Windows Sandbox creates a safe, throwaway desktop environment available on Windows 11 build 27686.1000 and later.

You can turn this file-sharing feature on or off to control exactly what the Sandbox can see and touch on your hard drive.

⚡ Quick Answer

To enable or disable sharing folders with Windows Sandbox, use either the Group Policy Editor or Registry Editor. In Group Policy, navigate to Computer Configuration - Administrative Templates - Windows Components - Windows Sandbox and adjust “Allow mapping folders into Windows Sandbox.” In the Registry, go to 🗝️HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Sandbox and modify AllowMappedFolders and AllowWriteToMappedFolders.

Turn on or off the Share folder with Sandbox feature on Windows

Folders can be shared with the Windows sandbox environment using the improved client.

Enabling or disabling this capability involves the steps outlined below.

First, open the Local Group Policy Editor (gpedit.msc). Searching for “Edit group policy” on the Start menu works too.

Then, navigate the following path:

💻Code
Computer Configuration -> Administrative Templates -> Windows Components -> Windows Sandbox

In the Group Policy details pane on the right, locate and double-click the “Allow mapping folders into Windows Sandbox” setting.

Windows Sandbox allow folder mapping
Windows Sandbox allow folder mapping

On the “Allow mapping folders into Windows Sandbox” window, set the option to Not Configured, Enabled, or Disabled.

  • Not Configured (default)
  • Enabled  – Mapping folders from the host into Sandbox will be permitted.
  • Disabled – Mapping folders from the host into Sandbox will not be permitted.

Sandbox can also write to a mapped folder after selecting the relevant options underneath.

Windows Sandbox allow folder mapping options
Windows Sandbox allow folder mapping options

Click OK to save changes. Rebooting your device applies the new configuration.

Enable or disable the Sandbox folder-sharing feature using the Windows Registry Editor

Another way to enable or disable the Sandbox sharing feature involves using the Windows Registry editor.

First, open the Windows Registry editor (regedit.exe) and navigate to the following folder key path.

💻Code
ComputerHKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsSandbox

Next, double-click the two REG_DWORD values (32-bit registry entries that store numerical settings) in the right pane under the Sandbox key.

💻Code
AllowMappedFolders
AllowWriteToMappedFolders

Entering a value of 0 for both disables the Sandbox folder-sharing feature in Windows.

Right-clicking a blank area to create a new DWORD (32-bit) registry item for each works if the two items remain hidden.

Then, entering a value of 0 for both disables folder sharing.

Windows Sandbox allow folder mapping registry
Windows Sandbox allow folder mapping registry

Deleting both items created above restores the default behavior and allows Sandbox folder sharing with the host.

💻Code
AllowMappedFolders
AllowWriteToMappedFolders

Save changes and restart your computer to apply them.

Windows 11 Sandbox features
Windows 11 Sandbox features

Managing folder sharing in Windows Sandbox ultimately comes down to adjusting group policies or tweaking the registry.

Conclusion:

  • Enabling or disabling the Windows Sandbox host-sharing feature in Windows 11 requires modifying group policy settings through the Local Group Policy Editor or registry settings via the Windows Registry Editor.
  • Users can choose to allow or disallow mapping folders into Windows Sandbox, as well as the ability for Sandbox to write to a mapped folder, providing control over the extent of folder-sharing functionality.
  • It is important to reboot the device after making changes in the group policy settings for them to take effect, while modifications in the registry settings also necessitate a computer restart.
  • These methods allow users to manage shared folders' security and access control within the Windows Sandbox environment, contributing to a more secure and customized user experience.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Share Host Folders with Windows Sandbox in Windows 11
Windows How to Share Host Folders with Windows Sandbox in Windows 11
How to Enable Networking in Windows 11 Sandbox
Windows How to Enable Networking in Windows 11 Sandbox
How to Reset Group Policy Windows 11 to Default
Windows How to Reset Group Policy Windows 11 to Default
How to Turn On Windows Sandbox in Windows 11
Windows How to Turn On Windows Sandbox in Windows 11

1 Comment

Leave a Comment

Your email address will not be published. Required fields are marked *