Use a Windows sandbox to quickly test and develop
Posted at: 7-2-2024

Hello there!

Did you know that on Windows 10 or 11, you can effortlessly launch a pristine Windows environment, ready for your command? You can do whatever you want in it since it's a sandbox and totally isolated from your system! ..Unless you tend to copy and paste something special over, you know. It acts like a remote desktop (RDP).

To utilize it, you must have one of these Windows versions: Pro, Enterprise, Pro Education/SE, or Education. If you're using a different version, this feature may not be accessible.

Let's get started!

Enable through powershell 🔗

Run a powershell in administrator mode and run the command below:

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

If it ran succesfully, then you activated Windows sandbox for usage. There might be cases that you need to take additional actions before it works. Check the link below for those (for example, virtualization needs to be turned on).

Start your sandbox 🔗

Open your start menu and simply search for "Windows Sandbox". it should be visible in your list. After selecting, it will open up your clean Windows environment in a RDP.

Great! Now you will be able to do all kind of magic and dispose of it in an instant. Remember that! Closing your instance will remove all your data and the next time you open a new one up, it's another clean Windows environment.

Additionally, there are suggested minimum requirements. For further details and additional steps, you can visit the official Microsoft website here.

Have a blast experimenting!