Windows 10 and Windows 11 (Pro and Enterprise Versions) include a great feature called Windows Sandbox.

If you aren’t familiar with operating system virtualization, you can read my overview of virtualization in, What is Virtualization.

Windows Sandbox provides a disposable virtual environment that will discard all changes in the virtual environment after you close the session. This gives you the flexibility to test changes in the registry test software in a non-persistent environment without needing to create a full virtual machine, install an operating system for your virtual machine, or configure networking (there are pros and cons about this and I will discuss that later).

To enable Windows Sandbox, you need to to make sure your physical machine supports virtualization, that your physical machine’s BIOS has virtualization turned on, and there are some minimum hardware requirements to use Windows Sandbox1 but for most people those will not be a problem.

If you want to use Windows Sandbox in a virtual machine and the host Operating System is running Windows, you will need to enable nested virtualization. To do that, you will need to open PowerShell as an Administrator and run the following command2:

Set-VMProcessor -VMName \<VMName> -ExposeVirtualizationExtensions $true

To enable Windows Sandbox using Windows’ UI, you would click Start, type “Turn Windows features on and off”, and click “Turn Windows features on and off”.

Turn Windows features on or off

You will need to scroll down until you see the Windows feature named, Windows Sandbox, check the checkbox next to that Windows feature, and click the OK button.

Windows Features

You will need to restart your computer to finish installing the Windows feature.

If you prefer to install Windows Sandbox using PowerShell, you can open PowerShell as an Administrator and run the following command3:

Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" -All -Online

After you restart your computer, you can click the Start button, and type Windows Sandbox. Clicking the item for Windows Sandbox will start it with its default configuration.

Windows Sandbox

I will discuss how to customize Windows Sandbox in the next article. For now, enjoy experimenting with Windows Sandbox (but don’t use it to analyze suspicious programs using the default configuration).

[1] https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-sandbox/windows-sandbox-overview#prerequisites

[2] https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-sandbox/windows-sandbox-overview#installation

[3] https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-sandbox/windows-sandbox-overview#installation