Skip to content

Run PS1, VBS, EXE, MSI in Windows Sandbox very quickly just from a right-click

Notifications You must be signed in to change notification settings

Joly0/Run-in-Sandbox

 
 

Repository files navigation

Run in Sandbox: a quick way to run/extract files in Windows Sandbox from a right-click

Original Author & creator: Damien VAN ROBAEYS

Rewritten and maintained now by Joly0

This allows you to do the below things in Windows Sandbox just from a right-click by adding context menus:

  • Run PS1 as user or system in Sandbox
  • Run CMD, VBS, EXE, MSI in Sandbox
  • Run Intunewin file
  • Open URL or HTML file in Sandbox
  • Open PDF file in Sandbox
  • Extract ZIP file directly in Sandbox
  • Extract 7z file directly in Sandbox
  • Extract ISO directly in Sandbox
  • Share a specific folder in Sandbox
  • Run multiple app´s/scripts in the same Sandbox session

Note that this project has been build on personal time, it's not a professional project. Use it at your own risk, and please read How to install it before running it.

How to install it ?

All the steps need to be executed from the Host, not inside the Sandbox

Method 1 - PowerShell (Recommended)
  • Right-click on the Windows start menu and select PowerShell or Terminal (Not CMD).
  • Copy and paste the code below and press enter irm https://raw.githubusercontent.com/Joly0/Run-in-Sandbox/master/Install_Run-in-Sandbox.ps1 | iex
  • You will see the process being started. You will probably be asked to grant admin rights.
  • That's all.

Note - On older Windows builds you may need to run the below command before,
[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12

Method 2 - Traditional

This method allows you to use the parameters "-NoCheckpoint" to skip creation of a restore point and "-NoSilent" to give a bit more output

  • Download the ZIP Run-in-Sandbox project (this is the main prerequiste)
  • Extract the ZIP
  • The Run-in-Sandbox-master should contain at least Add_Structure.ps1 and a Sources folder
  • Please do not download only Add_Structure.ps1
  • The Sources folder should contain folder Run_in_Sandbox containing 58 files
  • Once you have downloaded the folder structure, check if files have not be blocked after download
  • Do a right-click on Add_Structure.ps1 and check if needed check Unblocked
  • Run Add_Structure.ps1 with admin rights

alt text

About

Run PS1, VBS, EXE, MSI in Windows Sandbox very quickly just from a right-click

Resources

Stars

Watchers

Forks

Languages

  • PowerShell 100.0%