Add Run in Sandbox to the Windows 10 menu
Run in Sandbox is a useful PowerShell script that Windows 10 administrators can use to add an option that allows them to run executable files, zip files, and scripts into the Windows 10 sandbox.
Microsoft introduced it Windows Sandbox at the end of 2018 to run content administrators in a separate environment so as to avoid damage or changes to the underlying system.
Windows Sandbox is available on all Pro 10 versions of Windows 1903 from 10 onwards, but Windows XNUMX Home administrators can add it to their systems. See this guide that explains how you can do this.
Run in Sandbox adds shortcuts for different file types to the Windows 10 File Explorer menu. Once installed, all you have to do to run a supported file type in the sandbox is right-click on it and select “run in sandbox ”.
The main requirement for the script is that Windows Sandbox should already be installed on the system. You can add the test environment by searching for "Turn Windows features on or off". Find "Windows Sandbox" and enable it.
To install Run in Sandbox, do the following:
Download the latest version script from GitHub of the developer, e.g. select Code - Download Zip
Extract the file to your system and open the folder.
Open PowerShell as an administrator in the folder that contains the script.
Run the following commands with PowerShell and select Y whenever prompted.
Set-ExecutionPolicy Unrestricted. \ Add_Structure.ps1 Set-ExecutionPolicy AllSigned
The script will add the entries to the menu.
Note: When I tried it on an English system Windows 10 Pro version 2004, I noticed that it added French menu entries instead of English. This is probably a mistake but easy enough to understand.
Run in Sandbox supports PS1, VBS, MSI, and EXE files. Creates a WSB file when you select Run in Sandbox from the menu and the sandbox runs automatically.