Windows 10 1903 was recently released on MSDN and should be released on VLSC at any moment now. I will show you how to enable Windows Sandbox using Powershell and give you some suggestions on how to use it.
Windows Sandbox is a feature in 1903 that allows you to create a sandbox container using virtualization technology. This container is running an instance of Windows 10 where you can install applications, browser the internet and test all manner of things.
This container is deleted immediately when you close the Windows Sandbox windows which means it is great for testing. This is useful when you don’t know what the outcome will be or if you want to test something without harming your computer.
The steps required to enable Windows Sandbox using Powershell is very straight forward but there are some things that has to be in place before you enable it.
- Install or upgrade to Windows 10 1903
- Enable Virtualization Technology in BIOS
When you have these prerequisites enabled you can go ahead and start an elevated Powershell prompt.
Use this cmdlet to enable Windows Sandbox using Powershell.
Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" -Online -NoRestart -ErrorAction Stop
Restart your computer and open the start menu to search for Sandbox and you will find Windows Sandbox available.
Clicking the Windows Sandbox application will open a new window with a desktop that looks exactly like a normal desktop. You can now drag and drop files and copy/paste between this container and your PC and therefor very easily test things out.
This is what the sandbox looks like out of the box.
Windows Sandbox is easy to enable and a great tool to use when packaging applications, testing suspicious files or just playing around without making changes to your own machine.
I will personally use this to test applications for SCCM before deploying them and also to find the MSI GUID required for uninstallations in SCCM.
If you want to know more about Windows Sandbox you can find that information here.