Save 10%Pay yearly on any plan. 6% half-yearly, 3% quarterly. Help centreWhatsAppTelegram TeamsOpen a ticket

How to Install Windows Sandbox on Windows 10 and 11

Windows Sandbox is a throwaway Windows desktop for trying a program safely. Switch it on, use it, and set it up with a small configuration file.

3 min readBy Daniel

Reviewed by the AmazingRDP technical team

Installing Windows Sandbox

Need a separate Windows machine that stays? A Windows VPS gives you full admin access. See Windows VPS from $8.99

Windows Sandbox is a small, temporary copy of Windows that runs in a window. You can install and run anything in it. When you close the window, everything inside is deleted, and the next start is a clean Windows again. It is the simplest way to try a program you do not fully trust without putting your own system at risk.

Requirements

  • Windows 10 or 11 in the Pro, Enterprise or Education edition. The Home edition does not include it.
  • A 64-bit processor with virtualisation switched on in the BIOS or UEFI.
  • At least 4 GB of memory (8 GB is better), 1 GB of free disk space, and two processor cores.

To check virtualisation: open Task Manager, Performance, CPU, and look for "Virtualization: Enabled".

Switch it on

Through the menus

  1. Press the Windows key, type Turn Windows features on or off, and open it.
  2. Tick Windows Sandbox and click OK.
  3. Restart when asked.

The Windows Features window with Windows Sandbox ticked

With PowerShell

As administrator:

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

Use it

  1. Open the Start menu and start Windows Sandbox. A window with a fresh Windows desktop appears after a few seconds.
  2. Copy a file on your PC and paste it into the sandbox window, or download it there with the browser.
  3. Install and test.
  4. Close the window. Confirm that everything will be lost.

Nothing is kept between sessions. That is the point, and it means a program that needs a restart to finish installing cannot be tested this way on older versions; current Windows 11 keeps the contents through a restart inside the sandbox, though not after the window is closed.

Set it up with a configuration file

A text file with the ending .wsb starts the sandbox with your settings. Double-click the file to launch it.

<Configuration>
  <Networking>Disable</Networking>
  <MappedFolders>
    <MappedFolder>
      <HostFolder>C:\Users\Public\Downloads</HostFolder>
      <ReadOnly>true</ReadOnly>
    </MappedFolder>
  </MappedFolders>
  <MemoryInMB>4096</MemoryInMB>
</Configuration>
SettingDoes
NetworkingDisable cuts the sandbox off from the network. The safest choice for an unknown program
MappedFoldersShows a folder of your PC on the sandbox desktop; ReadOnly keeps the sandbox from changing it
ClipboardRedirectionDisable stops copy and paste between the two
LogonCommandRuns a command at start, for example an installer
MemoryInMBMemory for the sandbox
vGPUDisable draws without the graphics card; slower and a little more isolated

How safe is it?

The sandbox is a real virtual machine, separated from your system by the same technology as Hyper-V. A program inside cannot see your files unless you map a folder. Three cautions remain:

  • With networking on, a program can reach the internet and your local network.
  • A folder mapped without ReadOnly can be changed or encrypted.
  • It is a tool for caution, not a laboratory for known malware.

Sandbox, virtual machine or separate server?

You wantUse
To try one program for ten minutesWindows Sandbox
A second system that keeps its state, or another operating systemA virtual machine: see enabling Hyper-V and a virtual lab
A separate Windows that runs all day and is reachable from anywhereA remote server

Problems

SignCause
Windows Sandbox is greyed out in the feature listVirtualisation is off in the BIOS, or the PC is itself a virtual machine without nested virtualisation
It is missing from the listWindows Home edition
Error 0x80070002 or "no hypervisor was found"Run bcdedit /set hypervisorlaunchtype auto as administrator and restart
No internet insideA VPN or security program on the PC blocks the sandbox's virtual network

Windows Sandbox is a feature of the desktop editions and is not part of Windows Server, so it is not available on a remote server. For a separate Windows machine that stays, see our Windows VPS plans.

Questions

What is Windows Sandbox?

A temporary, isolated Windows desktop in a window. Everything inside is deleted when you close it.

How do I enable Windows Sandbox?

Open "Turn Windows features on or off", tick Windows Sandbox, click OK and restart.

Is Windows Sandbox available on Windows Home?

No. It needs the Pro, Enterprise or Education edition.

Are files saved in Windows Sandbox?

No. Closing the sandbox deletes everything in it. Copy out what you want to keep first.