- To enable Windows Sandbox, open “Windows Features,” check “Windows Sandbox,” click “OK,” and restart the computer.
- You can also enable the feature with commands using Command Prompt and PowerShell.
On Windows 11 (and 10), “Windows Sandbox” is a minimal installation of Windows isolated from the main installation that allows you to run untrusted applications without exposing your device.
Sandbox is available on the Pro and Enterprise editions of Windows, and it uses Microsoft’s Hyper-V technology to create a disposable lightweight virtual machine on-demand to run a separate kernel that separates the Windows Sandbox session from the host.
In other words, this is a small installation of Windows 11 (or Windows 10) of just around 100MB, enough to run the desktop environment and test applications. You can even copy and paste files from the host to the isolated environment. Once you finish testing the application, closing the feature will delete the Sandbox environment, which means that every time you start the feature, you will start with a fresh install of Windows 11.
Windows Sandbox requires virtualization in the Unified Extensible Firmware Interface (UEFI) on Windows 11 or 10 or Basic Input/Output System (BIOS) on Windows 10 before you can use the feature. You can use these instructions to enable hardware virtualization in the motherboard before proceeding with the steps below.
In this guide, I will teach you the steps to enable Windows Sandbox on Windows.
Enable Windows Sandbox from Windows Features
To enable “Windows Sandbox” to run untrusted apps on Windows 11 (or 10), use these steps:
Open Start on Windows.
Search for Turn Windows features on or off and click the top result to open the experience.
Check the Windows Sandbox option.
Click the OK button.
Click the Restart now button.
After you complete the steps, you can start the app from the Start menu.
If you want to disable the feature, you can use the same instructions, but in step 3, clear the option.
Enable Windows Sandbox from PowerShell
To enable Windows Sandbox with PowerShell commands, use these steps:
Open Start.
Search for PowerShell, right-click the top result, and select the Run administrator option.
Type the following command to enable Sandbox users and press Enter:
Enable-WindowsOptionalFeature -Online -FeatureName "Containers-DisposableClientVM" -All
Type “Y” and press enter to restart the computer
Once you complete the steps, the feature will be enabled and ready from the Start menu.
If you want to undo the change, you can use the same instructions, but in step 3, run the Disable-WindowsOptionalFeature -Online -FeatureName "Containers-DisposableClientVM"
command.
Enable Windows Sandbox from Command Prompt
To turn on Windows Sandbox with Command Prompt commands, use these steps:
Open Start.
Search for Command Prompt, right-click the top result, and select the Run administrator option.
Type the following command to enable Windows Sandbox and press Enter:
Dism /online /Enable-Feature /FeatureName:"Containers-DisposableClientVM" -All
Type “Y” and press enter to restart the computer
After you complete the steps, you can start using Windows Sandbox to test apps and visit untrusted websites without affecting the main installation.
If you want to undo the change, you can use the same instructions, but in step 3, run the Dism /online /Disable-Feature /FeatureName:"Containers-DisposableClientVM"
command.
To get started, open Windows Sandbox from the Start menu, and then you will be presented with a regular Windows desktop environment where you can install and run untrusted applications without affecting the current installation. When you finish closing the app, you will delete the entire virtual machine and anything you have installed.
Update June 19, 2024: This guide has been updated to ensure accuracy and reflect changes to the process.