Windows

How to Share Host Folders with Windows Sandbox in Windows 11

Richard
Written by
Richard
Sep 1, 2024 Updated Apr 17, 2026 4 min read

This article explains how to share a folder from your main computer with the Windows Sandbox in Windows 11.

Windows Sandbox is a tool that creates a safe, isolated space on your computer. You can use it to run apps or visit websites you don’t fully trust. It keeps these things away from your main system so your computer stays safe. Why do this? It allows you to test files without risking your personal data.

Windows 11 now includes Windows 11 build 27686.1000, which lets you share specific folders between your main system and the sandbox. You can turn off using this feature in Windows. Keep in mind that allowing a sandbox to access your folders could let bad software reach your files. Windows Sandbox is only available in Windows 11 Pro, Enterprise, and Education editions editions.

How to share a folder manually

You can easily share a folder while the sandbox is running.

  1. Open the enable and open the Sandbox app.
  2. Click the 3-dot menu button at the top right of the window.
  3. Select Share folder.
Share a host folder with sandbox Windows 11

  1. Find and select the folder on your computer that you want to share.
select a folder with sandbox Windows 11

  1. Click the Select Folder button.

What happens when done? The folder will appear inside your sandbox, allowing you to move or view files between the two environments.

Share a folder using a WSB file

If you want a folder to show up every time you open the sandbox, use a configuration file. Note: Creating and running these files may require admin privileges.

Create a new text file on your desktop and save it with a .wsb extension (for example, sandboxmap.wsb).

To give the sandbox read-only access (it can look but not change files), paste this into your file:

<Configuration> <MappedFolders> <MappedFolder> <HostFolder>C:\Users\Username\Downloads</HostFolder> <ReadOnly>true</ReadOnly> </MappedFolder> </MappedFolders></Configuration>

To give the sandbox read and write access (it can change or delete files), use this instead:

<Configuration> <MappedFolders> <MappedFolder> <HostFolder>C:\Users\Username\Downloads</HostFolder> <ReadOnly>false</ReadOnly> </MappedFolder> </MappedFolders></Configuration>

Make sure to change the path to match your own folder location. Save the file and double-click it whenever you want to open the sandbox with those folders connected.

Summary

Windows Sandbox provides a secure, isolated environment for testing untrusted software. By sharing a host folder, you can easily access your files inside this safe space. You can share folders manually while the app is running or use a WSB configuration file to mount them automatically every time you start the sandbox. Always be careful when sharing folders, as this can potentially expose your main system to security risks.

What is Windows Sandbox and how does it work?

Windows Sandbox is a lightweight, isolated environment in Windows 11 that allows users to run untrusted applications safely. It ensures that any potential threats do not affect the underlying operating system by providing a secure space for testing software and browsing websites.

How can I share a host folder with Windows Sandbox?

To share a host folder with Windows Sandbox, first open the Sandbox app and click on the three dots in the top right corner. Then select 'Share folder', navigate to the desired folder, and click 'Select Folder' to complete the process.

What is a WSB file and how do I use it?

A WSB file is a configuration file used to automatically mount folders in Windows Sandbox. You can create a text file with a .wsb extension, specify the host folder and access permissions, and then use this file to launch the Sandbox with the mapped folders each time.

Are there any security risks when sharing folders with Windows Sandbox?

Yes, sharing host folders with Windows Sandbox can pose security risks, as malicious software within the sandbox could potentially affect the host system or steal data. It's important to be cautious and only share folders that do not contain sensitive information.

Which editions of Windows 11 support Windows Sandbox?

Windows Sandbox is available in the Windows 11 Pro, Enterprise, and Education editions. Users with these editions can utilize this feature to create a secure environment for testing applications.

Was this guide helpful?

Tags: #Windows 11
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, the owner and lead writer at Geek Rewind, is a tech enthusiast passionate about simplifying complex IT topics. His years of hands-on experience in system administration and enterprise IT operations have honed his ability to provide practical insights 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.

Leave a Reply

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

Exit mobile version