Windows Sandbox is a complete one new feature Available exclusively for Windows 10 May Update or 1903.
"At Microsoft we regularly encounter these situations, which is why we created Windows Sandbox: an isolated, temporary interface where you can run unreliable software without fear of infecting your computer.
Any software installed on Windows Sandbox remains in the sandbox only and cannot affect your server. "Once the Windows Sandbox is closed, all software with all the files are permanently deleted," says Microsoft.
But if you already tried to run Windows Sandbox, you would notice that they are not available settings for this feature. All you can do is start and close the Sandbox.
Of course it should be noted that the method described below is not necessarily the simplest, but you can change various Windows Sandbox settings using a configuration file that you can create manually.
The configuration file uses the .WSB format and after editing it you can start Windows Sandbox with the parameters you have set by simply double-clicking on this file.
But let's look at the settings you can have in Windows Sandbox:
First of all, the default template to use is the following:
All settings that we will add should be placed between the above two tags.
Now let's create a virtual GPU, so Windows Sandbox will allow you to enable and disable vGPU. To do this, you must use the following commands:
EnablevGPU disabled: Disable
In other words, the configuration file should look like the following if you want to have the vGPU disabled:
Easy; Let's move on to networking. The command to enable or disable the network is as follows:
EnableNetworking disabled: Disable
This means that you want to turn off networking, your file should look like the following:
For mapped folders, the command will be as follows:
path to folder value
And to run a command at startup (after loading Windows Sandbox), you must use the following command:
command you want to run
You can now combine all of the above to create more complex configuration files that allow you to customize your Windows Sandbox to suit your needs.
For example, if you want to turn off vGPU and networking and run any file at startup (we'll try Windows Calculator below), the configuration file should look like this:
Disable Disable calc.exe
It may seem like a very simple file, but it will allow you to customize your Windows Sandbox exactly as you need it. Now if you are an experienced user you can do much more.
For example, with more advanced commands you can instruct Sandbox to download and run various scripts on startup, give access in certain folders but also run commands that automate the process of testing certain services within a network.