How to set up Windows Sandbox

Windows 10's new Sandbox feature lets you control with programs and files you have downloaded from the Internet by running them in a secure container.

It is easy to use, but its settings are saved in a plain text configuration file.

Windows Sandbox is easy to use

Windows Sandbox was first released with the Windows 10 May Update and is available in the Professional, Enterprise or Education versions of the Microsoft operating system. The service is not available in Windows 10 Home.

If available on your system, you can enable the Sandbox feature and then launch it from the Start menu.

Sandbox will launch, create a copy of your current Windows operating system, cut off access to your personal folders and give you a clean slate of Windows with Internet access.

Microsoft is adding a configuration file from which you can customize your Sandbox. For example, if you do not want to access the Internet, you will need to change the text file. If you need access to files on your host system, you need to copy and paste them into the Sandbox. If you want specific third-party programs to be installed, you will need to install them after starting Sandbox.

Because Windows Sandbox is completely deleted when you close it, you should go through all the above changes-settings every time you start it. On the one hand, this creates a more secure system, as if something goes wrong, you close the Sandbox and everything is deleted. On the other hand, you have to make the changes constantly, with every start and this is quite annoying.

To address this issue, Microsoft has provided a configuration option for Windows Sandbox. Using XML files, you can start Windows Sandbox with defined parameters. You can turn off the Internet connection, configure shared folders, or run whatever you want to install applications. Options are a bit limited in the first version of Sandbox, but Microsoft will add more in future updates to Windows 10.

How to set up Windows Sandbox

The copy of Windows 10 in a sandbox environment can access some shared folder in the your host system.

This wizard assumes that you have already set up Sandbox for general use. If you have not already done so, you must first enable it from the Windows Features dialog box.

To get started, you will need your Notebook or Favorite word processing (we recommend Notepad ++) and a blank new file. You will create an XML file that contains the settings. Once you have your file ready, you need to save it with a .wsb extension (from Windows Sand Box.) Double-click the file and Sandbox will start with the settings you saved.

Such as says Microsoft , you have several options for configuring the Sandbox. You can enable or disable vGPU, enable or disable networking, specify a shared folder on the host, set read permissions / s in this folder or run scripts at startup.

Using this configuration file, you can turn off the virtual GPU (enabled by default), turn off the network (enabled by default), specify a shared folder (sandbox applications do not have access to any by default), set read-write permissions on this folder or run script at startup

First, open Notepad or your favorite word processor and start with a new text file. Add the following text:

 

All the options you add must be between these two parameters. You can only add one option or all of them. If you do not set an option, the default will be used.

How to turn off the virtual GPU or network

According to Microsoft, activating the virtual GPU or Network increases the possibilities that malware can use to escape the testing environment. Therefore, if you are trying something you are particularly worried about, it would be good to turn them off.

To turn off the virtual GPU, which is enabled by default, add the following text to the configuration file.

Disable

 

To turn off network access, which is enabled by default, add the following text.

Disable

Add a folder

To add a folder, you must specify the folder you want to share, and then specify whether the folder should be read-only or not.

Add a folder:



C:\Users\Public\Downloads
true

In HostFolder you specify the specific folder you want to share. In the example above, the Users \ Public \ Downloads folder in Windows is shared.

ReadOnly determines whether Sandbox can write to the folder or not. Set it to true so that it can write to the folder or to false read-only.

Be aware that setting to true is dangerous if you do not know what you are doing. Giving Sandbox access access increases the risk if you try something you think is malicious.

How to run a script at startup

Finally, you can run custom scripts or basic commands. You could, for example, force Sandbox to open a folder that you added to the startup settings.

Let's see how it works:



C:\Users\Public\Downloads
true



explorer.exe C:\users\WDAGUtilityAccount\Desktop\Downloads

WDAGUtilityAccount is the default user for Windows Sandbox, so you will always mention it when you open folders or files as part of a command.

How to start Sandbox with your settings

When you're done, save your file and give it a .wsb file extension. For example, if the word processor saves it as Sandbox.txt, save it as Sandbox.wsb. To start Windows Sandbox with your settings, double-click the .wsb file. You can place it on your desktop or create a shortcut in the Start menu.

For your convenience, you can create a DisabledNetwork file to save you a few steps. Rename the extension to .wsb and you are ready to start Windows Sandbox.


Disable

 

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.086 registrants.

Written by Anastasis Vasileiadis

Translations are like women. When they are beautiful they are not faithful and when they are faithful they are not beautiful.

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).