Windows Sandbox: Test Sketchy Downloads Without Risking Your PC

A throwaway copy of Windows that opens in seconds and forgets everything the moment you close it.

FREE$34.95UpdateStar PremiumShare a link to claimA friend sends you a "must-have" tool. A forum post links to a tiny utility that promises to fix exactly your problem. The file looks fine, the download page looks fine, and still a little voice asks: what if it isn't? Windows 11 Pro has a built-in answer to that voice. Windows Sandbox starts a clean, isolated copy of Windows in a window. You run the file there, watch what it does, close the window, and every trace is gone.

Does your PC qualify?

Check this first, because Sandbox simply doesn't appear on some machines.

  • Edition: Windows Pro, Enterprise, Pro Education/SE or Education. Windows Home is not supported.
  • Virtualization switched on in the BIOS or UEFI firmware.
  • An AMD64 processor, or Arm64 on Windows 11 version 22H2 and later.
  • At least 4 GB of RAM (8 GB recommended), 1 GB of free disk space (an SSD helps) and two CPU cores (four with hyper-threading recommended).

Not sure about your edition? Settings > System > About shows it under Windows specifications. If virtualization is off, the setting lives in your PC's firmware setup, and its name depends on the board maker.

Step 1: Switch the feature on

Sandbox ships with Windows but is disabled by default.

  1. Click the search box on the taskbar and type Turn Windows Features on or off.
  2. In the list, tick Windows Sandbox and click OK.
  3. Restart the PC when asked.
  4. Open Windows Sandbox from the Start menu.

If the Windows Sandbox entry is greyed out or missing, your PC fails one of the requirements above. Re-check the edition and the virtualization setting before anything else.

Fans of the command line can enable it from an admin PowerShell with Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" -All -Online.

On Windows 11 version 24H2, Sandbox gets updated through the Microsoft Store. The first launch may show a short progress dialog while it fetches the newer app; Microsoft says this usually takes 30 seconds to 2 minutes.

Step 2: Get the suspicious file inside

The easiest way is plain copy and paste. Clipboard sharing is on by default.

  1. Right-click the file on your normal desktop and choose Copy (or press Ctrl+C).
  2. Click inside the Sandbox window, open File Explorer there and paste it, for example onto the Sandbox desktop.
  3. Run the file inside the Sandbox and watch what happens.

The newer Store version adds a menu behind the ... button in the top-right corner of the window. There you'll find Share Folder to hand a folder from your PC to the Sandbox while it runs, plus toggles for Clipboard Redirection, Audio Input and Video Input.

Windows Sandbox window with the ... menu open and Share Folder and Clipboard Redirection highlighted The runtime menu in the newer Sandbox app, shown here on an Insider build.

A word of caution on sharing folders: Microsoft warns that exposing host folders can let malicious software affect your system or steal data. For a dodgy file, copy it in rather than sharing your whole Downloads folder with write access.

Step 3: Know what disappears when you close it

This is the whole point. Close the Sandbox window and Windows asks you to confirm that all Sandbox content will be deleted. Click OK and the installed software, files and settings in there are gone. The next launch starts from a fresh, clean Windows again.

Some details worth knowing:

  • Restarting Windows from inside the Sandbox doesn't wipe it (since Windows 11 version 22H2), which helps with installers that demand a reboot.
  • Only one Sandbox can run at a time.
  • Your installed programs from the host aren't there. Need a tool inside? Install it inside.
  • On Windows 11 version 24H2 and later, built-in Store apps such as Calculator, Photos, Notepad and Terminal aren't available inside the Sandbox yet.

So if you want to keep something you made in the Sandbox, copy it out before closing. Afterwards it's too late.

Trick 4: Cut the network for really shady files

Here's the part many guides skip. The Sandbox has network access by default, and Microsoft points out that enabled networking can expose untrusted apps to your internal network. For a file you truly don't trust, start Sandbox with a config file that turns networking off.

  1. Open Notepad.
  2. Paste this, adjusting the host folder to wherever the file sits:
<Configuration>
  <VGpu>Disable</VGpu>
  <Networking>Disable</Networking>
  <MappedFolders>
    <MappedFolder>
      <HostFolder>C:\Users\Public\Downloads</HostFolder>
      <SandboxFolder>C:\temp</SandboxFolder>
      <ReadOnly>true</ReadOnly>
    </MappedFolder>
  </MappedFolders>
  <LogonCommand>
    <Command>explorer.exe C:\temp</Command>
  </LogonCommand>
</Configuration>
  1. Save it with the extension .wsb. In Notepad, put the name in double quotes, for example "Test.wsb", so it doesn't end up as Test.wsb.txt.
  2. Double-click the file. Sandbox starts with no network, no GPU sharing, and the folder mapped read-only as C:\temp, which opens automatically.

This is Microsoft's own sample for testing unknown downloads. Read-only means the file can't scribble back into your real folder, and no network means it can't phone home while you watch.

What Sandbox won't tell you

Sandbox shows you how a program behaves in one session. It isn't a virus scanner. A program that behaves nicely for five minutes can still be malicious later or only act up on a "real" machine. Use it as one extra check alongside your antivirus, not as a replacement. If you need a test system that keeps its state between sessions, a full virtual machine in VirtualBox is the better fit. If you'd rather sandbox single apps on your normal desktop, look at Sandboxie.

Our verdict

Windows Sandbox is a gift for anyone on Windows 11 Pro who regularly tries new tools, opens odd attachments or tests installers. Home users are out of luck. The one thing to do today: enable the feature and save the network-free .wsb file to your desktop, so the next suspicious download takes two clicks to test.

Related on UpdateStar

about author