Loading...

Powershell tool: Windows Sandbox Configuration Manager


In this post I will show you the tool I created that allows you to generate and edit Sandbox configuration file with WSB extension.

Two weeks ago I explained how to enable and configure Windows Sandbox on Windows 10 1903.
We will now see how to generate the configuration files.

How to get it ?



Configuration files reminder
You can run Windows Sandbox from two ways:
From the start menu, it will open a fresh Sandbox
From a configuration file, it will open a Sandbox with the selected configuration
The configuration file is an XML file, composed of differents tags for the below configuration:
- Virtualized GPU (Enable or Disable)
- Networking (Enable or Disable)
- Share a folder from the host (Path and access)
- Startup script
- Startup program

What it does ?
The tool is composed of four tabs:
- Basic infos
- Mapped folders
- Command
- Overview: View the current configuration file

Basic infos
- Set Sandbox name
- Set Sandbox path
- Enable or disable networking
- Enable or disable VGpu

Mapped folders
- Share a new folder from the host computer
- Edit an existing shared folder path
- Remove a shared folder from the configuration file

Commands
- Add a new startup command
- Edit an existing startup command
- Remove an existing startup command
In the next version I will add options to easily add, PowerShell, cmd...

How it looks like ?
There are two graphic versions of the tool:
- HamburgerMenu version: Sandbox Configuration Manager v1
- TabControl version: Sandbox Configuration Manager v2

See below an overview of each version
Sandbox Configuration Manager v1

Sandbox Configuration Manager v2

For each version a button located in the title bar allows you to change the main theme of the tool, as below:



How to use it ?
Load an existing configuration
1 / Click on the Load existing Sandbox button
2 / Browse to the WSB file and click on OK
3 / The configuration file options will be loaded
4 / Click on the Save existing sandbox button to apply change


Change basic infos
1 / Go to the first tab
2 / Type the name of the Sandbox to create
3 / Select the path of the new Sandbox
4 / Use the Networking status ComboBox to set the networking tag
5 / Use the VPGU status ComboBox to set the VGpu tag
6 / If configuration is over, click on the Create Sanbox button

Share a new folder
1 / Go to the second tab
2 / To set readonly access on the folder let it by default
3 / To set readonly access to false click on the ReadOnly switch
4 / To import just one folder let it by default
5 / To import all folders located in a main folder, click on Single folder switch
6 / Click on the Browse folder button
7 / Browse to the folder to share
8 / If configuration is over, click on the Create Sanbox button


Edit an existing folder
1 / Go to the second tab
2 / In the DataGrid, click on the  pencil button from the folder to change
3 / A dialog will be displayed
4 / Change what you want
5 / Click on Save
6 / Your changes will be applied in the datagrid
7 / If configuration is over, click on the Create Sanbox button


Remove an existing folder
1 / Go to the second tab
2 / In the DataGrid, click on the remove button from the folder to remove


Add a new command
1 / Go to the third tab
2 / Type your command and click on the + button
3 / The command will be displayed in the DataGrid
4 / If configuration is over, click on the Create Sanbox button


Edit an existing command
1 / Go to the third tab
2 / In the DataGrid, click on the  pencil button from the command to change
3 / A dialog will be displayed
4 / Change what you want
5 / Click on Save
6 / Your changes will be applied in the datagrid
7 / If configuration is over, click on the Create Sanbox button


Remove an existing command
1 / Go to the third tab
2 / In the DataGrid, click on the remove button from the command to remove 
WSB 1424442594923389367

Enregistrer un commentaire

Accueil item

Award

Join me soon

Join me soon

Endpoint Manager award

Mes articles en français

Author of Books

PowerShell GUI & WPF Group

PowerShell GUI & WPF Group

Join the FPSUGR

Join the FPSUGR

Stats