https://www.systanddeploy.com/2023/06/runinsandbox-quick-way-to-runextract.html Syst & Deploy Pages * Accueil * PowerShell * Intune * Log Analytics * MDT * WPF * Windows * Other posts Log Analytics * How to start ? * Reporting workbook Windows * BIOS Settings * Windows Sandbox Other posts * Sponsored posts * ENI Books * 4sysops WPF * WPF Guides * WPF Themes * WPF Librairies * WPF Dialogs * WPF Systray Intune * Intune troubleshooting * Intune reporting * Intune and BIOS * Proactive remediation * Intune + Graph * Group Policy Analytics * Build your Lab MDT * Understanding MDT * MDT Monitoring * MDT Tools * MDT GUI * MDT Protect PowerShell * Tips * Scripts * Tools * Modules * Manage GitHub Loading... [Search... ] Run in Sandbox RunInSandbox slider Windows Sandbox RunInSandbox: a quick way to run/extract files in Windows Sandbox with a right-click on a file Damien Van Robaeys Reply juin 05, 2023 A+ A- https://www.systanddeploy.com/2023/06/ runinsandbox-quick-way-to-runextract.html [runinsandbox_logo1] In this post I will show you the new version of RunInSandbox allowing you to easily run files in Windows Sandbox with just a right-click. Prerequisites - At least Windows 10 1903 - Windows Sandbox feature enabled - Admin rights to install the tool The solution The idea is this solution is to make some testing tasks easier by just running a file on Windows Sandbox with just a right-click on this file. With this solution you will able to - Run a PS1 as user in Sandbox - Run a PS1 as system in Sandbox - Run a VBS in Sandbox - Run a CMD in Sandbox - Run a MSI in Sandbox - Run an MSIX in Sandbox - Run a EXE in Sandbox - Run a PPKG in Sandbox - Run an Intunewin in Sandbox - Run a REG file in Sandbox - Open an URL or html in Sandbox - Open a PDF in Sandbox - Extract a ZIP in Sandbox - Extract an ISO in Sandbox - Share a folder in Sandbox - Run multiple apps, scipts in same Sanbdox session Here is an overview for right-click on a PS1 file [runinsandbox_ps1] What s new ? In this version you will be now able to: - Run a CMD in Sandbox - Open a PDF in Sandbox - Automatically purge WSB files - Resolve some context menus issues - Update Intunewin decoder Special thanks As you may know this is a free project built in free time. In the new version i would like to thank some guys who contributed in this project: - Julian aka Joly0 - Harm Veenstra - ImportTaste [9Ho] How to get it ? Click on the below GitHub picture [Octocat] Context menus issues If context menus are not displayed (especially on Windows 11) or you faced some issues with a context menu action, do not hesitate to send me a mail at damien.vanrobaeys@gmail.com or add a new issue on GitHub by clicking there. Feedback or ideas If you have feedback about some other things to run in Windows Sandbox don't hesitate to contact me How to install it ? 1. Download the file from GitHub, there 2. Extract the archive 3. Run file Add_Structure.ps1 with admin rights 4. Context menus will be added 5. A folder Run_in_Sandbox will be copied in C:\ProgramData OR 1. Run .\Add_Structure.ps1 -NoSilent with admin rights 2. A GUI will be prompted [AVvXsEhZ79fYwsLL9KYueU66IyE49QBS71LPi4] 3. Choose context menus to add 4. Click on Apply and install Be careful Be sure to copy all content of the ZIP including folder Sources and all its content. Do not run only the Add_Structure.ps1 file !!! How to remove it ? Run the Remove_Structure.ps1 file with admin rights Sandbox configuration 1. Open downloaded folder 2. Go to Run-in-Sandbox-master\Sources\Run_in_Sandbox 3. Edit file Sandbox_Config.xml It allows you to set below options for Windows Sandbox: - VGpu option - Networking option - ReadOnlyAccess option for shared folder - WSB files location If the WSB_Location is set to Default, WSB files will be saved in %temp%. You can type your own location. It also allows you to choose which context menus you want to enable. Set them to True or False to add context menu or not. Choose context menu to add 1. Go to Run-in-Sandbox-master\Sources\Run_in_Sandbox 2. Edit file Sandbox_Config.xml 3. Set below nodes to True or False: - ContextMenu_EXE: context menu for EXE file - ContextMenu_PS1: context menu for PS1 file - ContextMenu_MSI: context menu for MSI file - ContextMenu_VBS: context menu for VBS file - ContextMenu_ZIP: context menu for ZIP file - ContextMenu_Folder: context menu for folder - ContextMenu_Intunewin: context menu for Intunewin file - ContextMenu_Reg: context menu for Reg file - ContextMenu_ISO: context menu for ISO file - ContextMenu_PPKG: context menu for PPKG file - ContextMenu_HTML: context menu for HTML file - ContextMenu_MSIX: context menu for MSIX file - ContextMenu_CMD: context menu for CMD file - ContextMenu_PDF: context menu for PDF file WSB auto cleanup When you use a right-click context menu, it will automatically create a WSB file in %temp%. To automatically cleanup WSB file after Sandbox has been closed set the WSB_Cleanup parameter to True. Run PS1 in Sandbox 1. Choose the PS1 you want to run in Sandbox 2. Do a right-click on the PS1 file 3. You will have differents choices: - Run PS1 as user - Run the PS1 as SYSTEM - Run the PS1 with parameters 4. The Sandbox will be automatically launched with the specific configuration Run EXE in Sandbox 1. Choose the EXE you want to run 2. Do a right-click on the EXE file 3. Select Run EXE in Sandbox [AVvXsEgzDvFE4glONJxV2nqckijm9yLv] 4. A GUI will be displayed [AVvXsEiNaK7xgK51DATzPoPLVTTSwY6kKzjE8vAD8YW1] 5. Type switches to add to the commandline or skip it 6. The Sandbox will be automatically launched with the specific configuration Run MSI in Sandbox 1. Choose the msi you want to run in Sandbox 2. Do a right-click on the msi file 3. Select Run msi in Sandbox [AVvXsEg2XiNcx5ux5Raeb2sOzOp_pY8r-yy7PYcymW0p] 4. A GUI will be displayed [AVvXsEgN93Rdav0CS83-0MwXWhFZ9V6A24tME3i1oJE7] 5. Type switches to add to the commandline 6. The Sandbox will be automatically launched with the specific configuration Run VBS in Sandbox 1. Choose the VBS you want to run in Sandbox 2. Do a right-click on the VBS file 3. Select Run the VBS in Sandbox [AVvXsEiXuJrD67pSdZSEEWN1_EQVvSR6Iu7sQbBsnDnig6S-yl67iD] 4. The Sandbox will be automatically launched with the specific configuration Extract ZIP in Sandbox 1. Do a right-click on the ZIP file 2. Click on Extract ZIP in a Sandbox [AVvXsEg-sxHuRWOHFplCFavj3rKY8hHZwngGrsnn_zX-] 3. The Sandbox will be launched and the ZIP file will be extracted on the desktop Share folder in Sandbox 1. Do a right-click on or in the folder 2. Click on Share this folder in a Sandbox [AVvXsEjNk31fur2fdMEePwMQIvvEOx8Ex_nPfIiV6rL7] 3. The Sandbox will be launched and the folder will be shared Test multiple apps The purpose here is to test multiple apps or files in the same Windows Sandbox session, We will proceed as below: 1. Create a file with extension .sdbapp called App_Bundle.sdbapp 2. This file will work as an XML file 3. Add a new node for each app you want to install 4. The node looks like as below: As you may noticed, to add a new application you have to add the following nodes: - Application name - Application path (on the host) - Application silent switch See below an overview of installation of multiple applications: Run a REG file in Sandbox 1. Do a right-click on a REG file 2. A context menu will be available 3. Click on Test reg file in Sandbox [AVvXsEg8x4syfkCgR5jGIvzgwh8x] 4. Windows Sandbox will be opened with the reg execution Run a CMD file in Sandbox 1. Do a right-click on a CMD file 2. A context menu will be available 3. Click on Run CMD file in Sandbox [AVvXsEg1QGidjFwBsDfj1UCh7zUXv-aprH] 4. The CMD will be then executed in Sandbox Run a PDF file in Sandbox 1. Do a right-click on a CMD file 2. A context menu will be available 3. Click on Run PDF file in Sandbox [AVvXsEgk29c3_faTYFDa_opud2jT0pk] 4. The PDF will be then opened in Sandbox Run a PPKG file in Sandbox 1. Do a right-click on a PPKG file 2. A context menu will be available 3. Click on Run PPKG file in Sandbox 4. The PPKG will be then opened in Sandbox Extract an ISO in Sandbox 1. Do a right-click on a REG file 2. A context menu will be available 3. Click on Test reg file in Sandbox 4. The ISO will be then extracted in Sandbox Run an MSIX file in Sandbox 1. Do a right-click on a MSIX file 2. A context menu will be available 3. Click on Run MSIX file in Sandbox [AVvXsEjwrRJBWQAaD0niie58YP] 4. Windows Sandbox will be opened 5. Go to Apps & Features 6. You will see the application Open an URL in Sandbox 1. Do a right-click on an HTML file or an URL file 2. A context menu will be available 3. Click on Run web link in Sandbox [AVvXsEgebrSY7FqzGLPVGayNNrQvZG1GI] 4. Windows Sandbox will be opened 5. The URL will be opened in Edge Run in Sandbox, RunInSandbox, slider, Windows Sandbox Windows Sandbox 876797796671507420 Enregistrer un commentaire Enregistrer un commentaire Article plus recent Article plus ancien Accueil item Accueil item Connect * Twitter * Facebook * Linkedin * Youtube Award Award Sponsors Sponsors You want to support me ? You want to support me ? Mes articles en francais Mes articles en francais Endpoint Manager award Endpoint Manager award Author of Books Author of Books [debuter-avec-powershell-9782409039645_XL] Stats Copyright (c) 2013 Syst & Deploy . Design by Blogger Items Scroll 0x80070002 0xc0351000 1903 4sysops Accent Active Directory activedirectory activedirectory module AD ADSI Advanced Endpoint Analytics ahk assemblies assembly Astuces autoclose wpf Autopilot Autopilot complete Autopilot free lab Autopilot Lab Autopilot module Autopilot PowerShell Azure Azure Active Directory Azure AD Azure AD devices Azure AD users Azure application azure Automation azure file azure key vault Azure Monitor Azure_Automation backup technet base64 battery warning BCDEDIT BCU BIOS BIOS auto update BIOS Dell BIOS documentation BIOS HP BIOS Intune BIOS Lenovo bios password BIOS report BIOS settings Bios settings Intune BIOS Update BIOS_PowerShell BIOS_Settings block keyboard shortcut blog notification boot BSOD burnttoast Change BIOS settings Cisco Cisco AnyConnect Cisco AnyConnect Stats Client CMCB cmdlet Compare BIOS compare-object Comparison ConfigMgr Configuration Manager contextmenu Convert WSL2 cortana countdown CSS customsettings.ini Datagrid Datagrid color Datagrid rows color DatePicker Debug Deploiement deploy sandbox Deployment Deploymentshare Design Device anomalies devops Dialogs dism DLL dnSpy docker auto update Docker desktop docker desktop auto update docker desktop update; windows service docker for windows Elysium encode exe to base64 encodedcommand End user computing End user support Endpoint Analytics Endpoint Analytics Proactive Remediation Endpoint Manager ENI Events EXE explore assembly explore dll explore exe Explorer export External_article Extract F8 FinishAction Flow Form get-bios get-service getadcomputer getaduser getbios Ghost Ghost Explorer github Google Chrome GPO Graph Graph API graph explorer Graph Intune group policy group policy analytics Group_Policy_Analytics GUI GUI system context Hardware Inventory Collection Cycle HP BIOS HTA HTML inplace upgrade Internet Explorer Intune Intune BIOS password Intune BIOS Update Intune GPO Intune Graph Intune local admin intune locate device intune logs Intune notification Intune Power BI intune Proactive Remediation Intune reporting Intune role permissions Intune roles Intune suite Intune Toast Intune troubleshooting intune win32 Intune_BIOS Intune_BIOSUpdate Intune_Graph Intune_LAB Intune_OMAURI Intune_Reporting Intune_Scripts Intune_TIPS Intune_troubleshooting Intune_Win32Appli intunewin Inune invoke-restmthod KB key vault keyboard filter Lenovo library list bios Litetouch Livre loading indicator loadingindicator Local admin local admin report local administrators locate device lock keyboard combination Log Analyics workbook Log Analytics Log Analytics workspace Log_Analytics_Report LogAnalytics_Start MahApps mahapps accent Mahapps theme mcafee MDT MDT 2010 MDT 2012 MDT 2013 MDT 8443 mdt 8450 MDT profile MDT Tips MDT variables MDT Wizard MDT Wizard Editor MDT Wizard Studio MDT_GUI MDT_Monitoring MDT_Powershell MDT_Progress_Bar MDT_Protect MDT_Software_Center MDT_Tips MDT_Tools MDT_Tools_Pause_TS MDT_Tools_TS_Debugger MDT_Wizard mdt8450 mecm MECM Lab mem MEMCM Menu demarrer MessageBox Metro Metro design Michael Niehaus Microsoft Microsoft Deployment Toolkit Microsoft DeploymentToolkit Microsoft Endpoint Configuration Manager Microsoft Endpoint manager Microsoft Graph Microsoft Most Valuable Professional Microsoft.Graph.Intune Migrate GPO Modern BIOS Modern deployment Modern UI modern workplace module Monitoring host MS Graph MVP Niehaus notification nssm Nuget offline media OMA-URI OneDrive onedrive size on disk Optimize OSD Outlook pst Pause_TS PIN PIN code pnp pnp authentication pnp module Power Automate Power options powercfg Powershell PowerShell Base64 Powershell BIOS powershell booking Powershell calendar Powershell Dialogs powershell exe powershell gallery powershell Graph Powershell GUI PowerShell history powershell key vault PowerShell Menu powershell notification powershell pst Powershell remote powershell screenshot powershell service powershell sharepoint powershell Studio powershell systray Powershell Teams Powershell to exe Powershell tool Powershell Web Powershell_AD Powershell_customization powershell_github Powershell_GUI powershell_modules Powershell_script Powershell_Tips Powershell_Tools powershell_wpf powershellforgithub powershellgallery PowershellI prerequisites Proactive Remediation BSOD Proactive Remediation Proactive Remediation OneDrive Proactive Remediations BIOS Proactive Remediations toast notification Proactive_Remediations progress bar progress ring progressbar Protect task sequence PS1 ps1 exe PS1TOEXE psgallery PST pst migration RadialMenu Reboot warning Recast software Registre remote bios remote commands right click tools ring RSAT RSAT Windows 10 RSS Run in Sandbox runbook on demand Rundeck RunInSandbox Safeboot Sandbox Sandbox configuration sandbox error Sandbox Explorer Sandbox Intune Sandbox SCCM SAPIEN SCCM sccm battery alert SCCM GUI SCCM wizard SCCM_GUI screenshot in Windows PE Scripting self extractor SelfX SelfX admin Send mail series_Monitoring series_PSMDT SFX Sharepoint simpleDialogs size n disk slider software center Speech sponsored_post stackpanel standalone media Surface Surface Pro 7 Surface Pro 7 WinPE Symantec systray systray menu systray submenu systray tool Task Sequence Task Sequence Debugger Task Sequence password Task Sequence pause taskbar taskbar menu taskbar tool Teams Technet Technet gallery technet retirement Technical Preview Technical Preview 1911; SCCM Lab Theme Tile toast notification toast system Tools Transparent background Transparent WPF TS_Debugger unblock file understanding_MDT upgrade in place User notification VBS vbscript Visual studio vpncli.exe vpncli.exe stats website notification Welcomewiz_SelectChoice win32 application Win32 battery empty Win32_Battery Win32app Windows Windows 10 Windows 10 1903 Windows 7 Windows 8 Windows Autopilot Windows features Windows PE Windows Sandbox Windows Sandbox enrollment Windows Service windows subsystem for linux Windows_BIOS Windows_Sandbox WindowsAutopilotIntune WinPE WinPE hotkey; Autohotkey WinPE screenshot WinPE shortcut Winrar Wizard Editor WMI WPF WPF Calendar WPF Controls WPF Gif WPF menu wpf resize WPF Top menu WPF_Dialogs WPF_GUI WPF_Guides WPF_Libraries WPF_Mahapps WPF_Progress WPF_Systray WPF_Themes_WPF_Guides WSB WSL WSL2 XAML ZTIGather ztiutility