This is how you can configure Windows Sandbox [EASY STEPS]

3 minute read

Home » How To » This is how you can configure Windows Sandbox [EASY STEPS]

Since late May 2019, Microsoft has rolled out the Windows 10 version 1903 update to more and more users. That update includes a new Windows Sandbox for the Windows 10 Enterprise and Pro editions.

Windows Sandbox enables users to open untrusted programs and files within a secure container. Then dodgy programs can’t have any impact when opened within the sandbox.

Windows Sandbox doesn’t include any notable configuration options on its window. Thus, at first glance there doesn’t seem to be any way users can configure the sandbox.

However, users can adjust a few Windows Sandbox settings by saving a WSB configuration file. Users can add a few configuration commands to the WSB file to adjust sandbox settings.

But first, you need to enable Windows Sandbox. Check out this step-by-step guide on how to enable Windows Sandbox.

Once you’ve turned Windows Sandbox on, you can configure it depending on your needs.

Steps to configure Windows Sandbox

  1. To set up WSB configuration file, users will need to open a text editor. Notepad is the default text editor in Windows 10 that users can open by pressing the Windows key + S and entering ‘notepad’ in the search box.
  2. Then click Notepad to open that text editor’s window. However, users can also set up a WSB file with alternative third-party text editors.
  3. Users need to add two configuration tags to the bottom and top of the WSB file. First, enter ‘<Configuration>’ at the top of the file.
  4. Then, a few lines below that, enter ‘</Configuration>’ in Notepad.
  5. Then your text file should look something like the one in the snapshot directly below. Users must enter all the commands between the two configuration tags.
  6. There are four alternative commands that users can configure Windows Sandbox with. Users can enable networking by entering ‘<Networking>Enable</Networking>’ in Notepad.
  7. To disable networking, input ‘<Networking>Disable</Networking>’ as shown directly below.

The virtual GPU is enabled by default, and users can turn that off with the VGpu command. To do that, enter ‘<VGpu>Disable</VGpu>’ in Notepad. Users can enable VGpu again by entering ‘<Gpu>Enable</VGpu>’ in the text editor.

Users can add a Logon command to the configuration file to open a programs when they launch Sandbox. For example, to launch Paint with Sandbox, users would enter ‘<LogonCommand>’ and ‘</LogonCommand>’ in the text editor.

Then they would enter ‘<Command>mspaint.exe</Command>’ inbetween the Logon tags as shown in the snapshot directly below.

There is also a command that enables users to share folders by mapping them. That command specifies the path of the folder to map and whether the folder is read only or not. Users enter ‘<MappedFolders>’ and ‘</MappedFolders>’ tags in the text file to map folders.

Then users enter the full command as shown directly below.

Thus, the ‘<HostFolder>’ tags specify the path of the folder to map. Then users specify whether the folder is read only by entering ‘true’ or ‘false’ between the ‘<ReadOnly>’ tags.

When users have entered all the configuration tags, click File > Save as in Notepad. Select All Files on the Save as type drop-down menu. Enter a title for the file in the text box, which must include .WSB at the end.

For example, users could enter something like ‘Sandbox config.WSB’ in the File name box. Then press the Save button.

Overall, the sandbox configuration commands are fairly straightforward. The commands are similar to HTML tags with which users enter page content between opening and closing tags.

So, this is the list of Windows Sandbox commands you can use right now.

With those commands, users can instruct Windows Sandbox in various ways.

How to fix Windows Sandbox

Keep in mind that many users reported getting Windows Sandbox error 0x80070002. If you’re experiencing the same issue after configuring Sandbox, use this guide to fix it for good.

Discussions

Next up

Quick Access deleted on Windows 10 [EXPERT FIX]

Tashreef Shareef avatar. By: Tashreef Shareef
2 minute read

The Quick Access feature in Windows 10 provides a convenient way to access your frequently opened folders and recently opened files. While some may find […]

Continue Reading

Gears of War 5 error 0x00000d1c is plaguing many gamers

Rabia Noureen avatar. By: Rabia Noureen
2 minute read

Many Gears of War 5 players who tried to join ranked matches reported experiencing different issues. They keep on getting error 0x00000d6e when they trying […]

Continue Reading

Here’s why Windows 10 users are switching to other platforms

Rabia Noureen avatar. By: Rabia Noureen
4 minute read

People have been dealing with Windows 10 issues since the OS was first introduced in 2015. There are many die-heart Windows fans who prefer to […]

Continue Reading