How To Turn On Windows Sandbox & Create Shared Folder Between Sandbox And Host OS in Windows 11

0
Create Shared Folder Between Sandbox And Host OS

Sandbox is a virtualized environment similar to a virtual machine that’s available in “Windows 10 Pro” și Enterprise. You can use it to test apps that you’re not sure are safe, visit untrustworthy websites, and generally do things that you fear might compromise your main system. Up until May 2020 Update, you couldn’t personalize the Sandbox in any way. Now you can, as Microsoft lets you create and use scripts that can alter the way Sandbox works. Here’s how to do it :

Create Shared Folder Between Sandbox And Host OS

NOTE : Before you can customize how to works on your PC, you must first install it. If you need help with that. read How to install “Sandbox” in “Windows 10” in three steps. Also, if you’re wondering how might be useful to you, here are a few ideas : 4 things you can do with “Sandbox”. Furthermore, keep in mind that this guide only applies to “Sandbox”, in “Windows 10” with May 2020 Update, Pro or Enterprise editions. It is not available in Windows 10 Home.

 How to configure ?

In order to customize “Sandbox” or automatically run apps and scripts when you launch it, you have to create a configuration file. To do that, you can use “Notepad” or any other text processor application to write code for “Sandbox”. Every configuration file that you create for “Windows Sandbox” must start with the line” <Configuration>” and end with the line “</Configuration>“. All the other code that you’re going to add must be placed between these lines of code.

Create Shared Folder Between Sandbox And Host OS
  • Once you’ve created the configuration file and finished adding all the code to it, you have to save it using the file extension “.wsb
Create Shared Folder Between Sandbox And Host OS
  • Saving a “Windows Sandbox” config file “.wsb

Then, you can double-click or double-tap on the “.wsb file” to launch your personalized “Sandbox”.

 How to share Folders With Sandbox ?

Can map folders from the host. In other words, you can make your “Sandbox”, see folders found on your “Windows 10” PC. To do that, in the “.wsb” file that you created with “Notepad”, add the following code:

<MappedFolders>
<MappedFolder>
<HostFolder>Folder shared with Windows Sandbox</HostFolder>
<ReadOnly>true or false</ReadOnly>
</MappedFolder>
</MappedFolders>

You can add as many folders to share as you want: just make sure to put their paths between the”<HostFolder></HostFolder>” tags.

Also, for each folder that you add to the list, you can specify whether you want “Sandbox”, to have read-only access to it. For that, add the code”<ReadOnly>true</ReadOnly>” after it. If you want Windows Sandbox to have write-access to that folder, add the code”<ReadOnly>“false”</ReadOnly>” after it.

However, remember that this makes the files and folders from the shared folder available to the apps you run in “Sandbox”. In other words, those apps can change your files, which you might not want.

For example, if you want your “Windows Sandbox” to have access to your Downloads folder, type:

<MappedFolders>
<MappedFolder>
<HostFolder>C:\Users\UserName\Downloads</HostFolder>
<ReadOnly>true</ReadOnly>
</MappedFolder>
</MappedFolders>
Create Shared Folder Between Sandbox And Host OS

Make sure to change “UserName” with the name of your Windows 10 user account.
Then, when you run “Sandbox” using this “.wsb” configuration file, all the shared folders are instantly available on the desktop or at this location: “C:\Users\WDAGUtilityAccount\Desktop“.

Create Shared Folder Between Sandbox And Host OS

What Other Features Would You Like To See In Windows Sandbox?

Although configuring how “Sandbox” works is something you can do now, it still feels like it’s just in an early state. We would also like to see Microsoft add options for automatically connecting USB devices directly to the “Sandbox”. We’re sure you have other cool ideas too. Tell us what other features you would like “Sandbox” to have: comment below and let’s discuss.

Take a Backup: If you are willing to try the above tool, then please take a backup of your personal data from your Android Smartphone or Tablet. As flashing any Firmware or recovery may brick the device.

Credits: The Tool is created and distributed by the developer. So, full credits go to the developer for sharing the tool for free.

Leave a Reply

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