Follow
Windows

How to Share Host Folders with Windows Sandbox in Windows 11

Richard
Written by
Richard
Sep 1, 2024 Updated Apr 17, 2026 2 min read
Sandbox share host folder fetured image
Sandbox share host folder fetured image

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.

⚡ Quick Answer

Share a folder by opening Windows Sandbox, clicking the three-dot menu, selecting “Share folder,” and choosing your desired folder. For automatic sharing on startup, create and run a .wsb configuration file specifying the host folder path and read/write permissions.

How to share a folder manually

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

  1. Click the 3-dot menu button at the top right of the window.
  2. Select Share folder.
Share a host folder with sandbox Windows 11
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
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.

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 Enable or Disable Sharing Host Folders with Windows Sandbox in Windows 11
Windows How to Enable or Disable Sharing Host Folders with Windows Sandbox in Windows 11
How to Delete Files in Windows 11
Windows How to Delete Files in Windows 11
How to Turn On Windows Sandbox in Windows 11
Windows How to Turn On Windows Sandbox in Windows 11
How to Enable Networking in Windows 11 Sandbox
Windows How to Enable Networking in Windows 11 Sandbox

No comments yet — be the first to share your thoughts!

Leave a Comment

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