Microsoft's Windows Sandbox offers a lightweight, disposable desktop environment where you can run untrusted applications in complete isolation from your host system. Built into Windows 10 Pro, Enterprise, and Education (version 1903 and later) and all Windows 11 editions except Home, this feature creates a pristine virtual machine that discards all changes the moment you close it. No lingering malware, no corrupted registry keys, no orphaned files—just a clean slate every time.

If you've ever hesitated before downloading a suspicious utility or clicking an email attachment, Windows Sandbox removes that risk without requiring you to set up a full Hyper-V virtual machine or install third-party sandboxing software. It uses the same hypervisor technology that powers Windows itself, but wraps it in an interface that launches in seconds and vanishes with a single click.

How Windows Sandbox Works Under the Hood

Windows Sandbox is not a traditional virtual machine. Instead, it's a container-like environment that uses the host's own Windows kernel, dynamically generating a clean operating system image from the files already on your disk. At its core, it combines three key technologies:

  • Hypervisor-based isolation: The sandbox runs inside a lightweight virtual machine managed by the Windows hypervisor, the same Type 1 hypervisor used by Hyper-V, Windows Defender Application Guard, and Credential Guard. This ensures that even if malware compromises the sandbox, it cannot escape to the host.
  • Integrated kernel scheduler: Unlike a full VM that requires a separate kernel, the sandbox shares the host kernel but isolates user-mode processes and resources. This dramatically reduces startup time and memory footprint.
  • Dynamic base image: Windows uses the same operating system binaries installed on the host to construct a sandbox image on the fly. No separate VHD download is needed, and the sandbox always matches the host's patch level, eliminating a common security gap.

When you launch Sandbox, a new instance of Windows boots inside a sealed-off environment. The virtual machine gets its own virtual disk, memory, and virtualized CPU, but all changes are written to a temporary differencing disk that is destroyed on closure. The next time you open Sandbox, it starts from the original clean image again.

System Requirements

Before you dive in, make sure your machine meets these prerequisites:

  • Windows edition: Pro, Enterprise, or Education for Windows 10/11. Windows 11 Home does not include Sandbox (though you can enable it with workarounds, that's unsupported).
  • Architecture: AMD64 or ARM64 processor (though Microsoft officially supports only AMD64).
  • Virtualization capabilities: Hardware virtualization must be enabled in BIOS/UEFI (Intel VT-x or AMD-V).
  • RAM: At least 4 GB (8 GB recommended). Sandbox itself consumes about 1 GB of RAM when idle.
  • Disk space: Minimum 1 GB free disk space, with SSD recommended for faster startup.
  • CPU: A processor with at least two cores (four cores with hyperthreading recommended for smooth performance).

Windows Sandbox is installed as an optional Windows feature. It's not present in Windows 10 Home, and while registry hacks exist to force-enable it, they may break the feature or introduce security issues.

Enabling Windows Sandbox

Follow these steps to turn on Windows Sandbox:

  1. Open Control PanelProgramsTurn Windows features on or off. Or search for "Windows Features" in the Start menu.
  2. Scroll down and check the box next to Windows Sandbox.
  3. Click OK and restart your PC when prompted.

Alternatively, you can enable it via PowerShell as an administrator:

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

After restart, you'll find Windows Sandbox in the Start menu as a standard app. Launch it, accept the UAC prompt, and within 30 seconds you have a fresh desktop.

First Look: Inside the Sandbox

Once launched, Windows Sandbox presents a full Windows desktop with a Start menu, taskbar, File Explorer, and Microsoft Edge browser. The interface looks identical to your host, but with a few deliberate restrictions:

  • No Microsoft Store apps are pre-installed, including the new Microsoft Store itself.
  • The sandbox starts in a window that you can resize or maximize; it is not a separate desktop like a traditional VM, though you can use it in full-screen mode.
  • A small banner at the top of the window reminds you that you're in Windows Sandbox.
  • The clipboard is shared by default, but you can control directional copy/paste via configuration files.
  • Network access is enabled, so you can download files and test web-based apps. However, the network traffic is still isolated, and host firewall rules apply.

Because the sandbox shares the host's kernel and drivers, hardware devices like USB storage may appear after you redirect them, but by default the sandbox has no access to local drives or USB peripherals. You can, however, map host folders for read/write access using configuration files.

Testing Untrusted Applications

Drop an .exe or .msi installer into the sandbox window (or copy it from the host clipboard) and run it as you normally would. If the application contains malware, ransomware, or a virus, the damage remains confined to the sandbox. Close the sandbox, and every trace—including the malware—disappears entirely.

This is particularly useful for:

  • Email attachments: Open suspicious PDFs, Office documents with macros, or ZIP files without risking your real system.
  • Browser downloads: Download freeware from unknown sites and test inside the sandbox before installing on the host.
  • Software trials: Experiment with beta software or unstable drivers in an environment where blue screens won't affect your production machine.
  • Malware analysis: Security researchers can safely detonate malware samples to observe behavior.

One important limitation: while hypervisor isolation is robust, advanced malware that detects virtual environments may behave differently or refuse to execute, so Windows Sandbox is not a complete replacement for dedicated sandboxing tools used in professional malware analysis.

Advanced Configuration with .wsb Files

Out of the box, Windows Sandbox is a blank slate. But you can customize its behavior using configuration files in the .wsb format (Windows Sandbox Configuration). These are simple XML files that allow you to:

  • Map host folders: Make a folder from your host available inside the sandbox as read-only or read/write. For example, sharing a downloads folder so you can quickly pass files without copy-pasting.
  • Launch a startup script: Run a PowerShell or command script automatically when the sandbox starts. This can install tools, configure settings, or open applications.
  • Enable/disable networking: Turn off network access for an air-gapped testing environment.
  • Redirecting audio, video, and printer: Control which host devices the sandbox can access.
  • Memory and vGPU: Allocate more RAM or enable virtual GPU for graphics-accelerated workloads (requires GPU-PV support).

A sample .wsb file looks like this:

<Configuration>
  <VGpu>Disable</VGpu>
  <Networking>Disable</Networking>
  <MappedFolders>
    <MappedFolder>
      <HostFolder>C:\\Users\\Public\\Downloads</HostFolder>
      <SandboxFolder>C:\\Users\\WDAGUtilityAccount\\Downloads</SandboxFolder>
      <ReadOnly>true</ReadOnly>
    </MappedFolder>
  </MappedFolders>
  <LogonCommand>
    <Command>C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -Command "Start-Process notepad.exe"</Command>
  </LogonCommand>
</Configuration>

Save this file with a .wsb extension and double-click it to launch a sandbox with those settings. No scripting knowledge beyond basic XML is required.

Practical .wsb Recipes

  • Forensic analysis environment: Disable networking, map a folder containing suspicious files, and launch a script that runs strings or other analysis tools.
  • Developer sandbox: Map a project folder and automatically open Visual Studio Code or compile code without polluting your host.
  • Secure browsing: Launch with only the Edge browser and no host folder access, providing a clean browser session that resets on exit.

Security Architecture

Windows Sandbox leverages the same hardened environment as Windows Defender Application Guard. The key security guarantees are:

  • Kernel isolation: The sandbox runs in a separate virtual trust level (VTL1) enforced by the hypervisor. Even if malware escalates to kernel mode inside the sandbox, it remains in VTL1 and cannot access the host kernel (VTL0). This is the same technology used in Windows 11's VBS (Virtualization-Based Security).
  • No persistence: The sandbox is always a fresh image. Malware that installs bootkits or rootkits cannot survive a restart—because closing the sandbox destroys the entire state.
  • Hardware-backed: Hypervisor-enforced code integrity (HVCI) is active inside the sandbox, ensuring that only signed drivers and modules can run in kernel mode.
  • Network separation: While networking is enabled by default, the sandbox uses a virtualized NAT, so it cannot directly access devices on the host's local network unless explicitly bridged. Inbound connections to the sandbox are blocked by default.

However, it's not a magic bubble. Malware that exploits zero-day hypervisor escapes could theoretically break out, though such attacks are extraordinarily complex and rare. Additionally, the sandbox does not by default restrict internet access, so malware could phone home and exfiltrate data—if you allow shared folders with write access, it could modify those files. To mitigate, you can disable networking and use read-only shared folders.

Performance and Resource Usage

Windows Sandbox is surprisingly lean. On a modern system with an SSD, it boots in 10-30 seconds and consumes roughly 1 GB of RAM. The dynamic image generation uses a differencing VHD that typically adds only about 500 MB of disk footprint, which is automatically cleaned after closure.

CPU usage at idle is near zero, but intensive tasks inside the sandbox will consume host resources. Because the sandbox shares the host GPU through paravirtualization (if vGPU is enabled), basic graphics acceleration works, but 3D gaming or CAD applications may perform poorly.

If you run out of memory, the sandbox will start paging to its ephemeral VHD, which can slow performance. Assigning more RAM via configuration is recommended for demanding workloads.

Limitations and Workarounds

  • No Windows 11 Home support: This is the most common gripe. Microsoft restricts Sandbox to Pro and higher, likely as a market segmentation strategy. Third-party alternatives like Sandboxie Plus or Oracle VM VirtualBox can fill the gap.
  • No persistence: By design, all data is wiped on close. This can be frustrating if you need to save work. The workaround is to use mapped folders for outputs.
  • No nested virtualization: You cannot run Hyper-V or WSL2 inside the sandbox because the hypervisor does not support nested VM extensions in this mode.
  • Limited to current Windows version: The sandbox always uses the same build as the host. You cannot test on older versions like Windows 10 1809 unless you run a full VM.
  • Clipboard limitations: Copying large files may fail; use shared folders for big transfers.
  • No integration with Windows Subsystem for Android or Linux: WSL and WSA are separate features and cannot run inside Sandbox.

Comparing Windows Sandbox to Alternatives

Feature Windows Sandbox Hyper-V VM Sandboxie Plus Windows Defender Application Guard
Type Lightweight VM Full VM Application sandbox Hypervisor-isolated browser
Persistence None Persistent Optional None
Resource overhead Low High Very low Medium
Ease of use Instant on Requires setup Simple Managed by policy
Malware isolation Strong Strong Moderately strong Strong
Capabilities Full desktop Full desktop Per-app Browser only

For quick one-off testing of unknown executables, Windows Sandbox is unbeatable in terms of convenience. Power users who need full control and persistence should keep a traditional VM. Sandboxie Plus remains a viable alternative on Home editions, though it lacks kernel-level isolation.

Troubleshooting Common Issues

"Windows Sandbox failed to initialize"

  • Ensure virtualization is enabled in BIOS (VT-x/AMD-V).
  • In Windows Features, verify that both "Windows Sandbox" and "Hyper-V Platform" are enabled.
  • Run SystemInfo in command prompt; the line "Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed." should appear.

Performance is sluggish

  • Close memory-hungry applications on the host.
  • Allocate more RAM via .wsb configuration (up to the host's free memory).
  • Disable vGPU if graphics performance is not needed; sometimes the virtual GPU driver causes overhead.

No network inside sandbox

  • Check that the "Windows Sandbox" firewall rules are enabled (they are by default).
  • Ensure no third-party firewall blocks the virtual switch.
  • Restart the "Host Network Service" (hns) in services.msc.

Sandbox won't start after Windows update

  • Run DISM /online /cleanup-image /restorehealth then re-enable the feature.
  • A known bug in some 2023 cumulative updates broke Sandbox; installing the latest updates usually fixes it.

Future Outlook

Microsoft continues to invest in virtualization-based security. Windows 11 brought significant under-the-hood improvements to Sandbox, including faster startup times and better graphics support via GPU-PV. Resource allocation is now more dynamic, reducing the memory footprint further.

Rumors suggest that future updates might allow optional persistence for specific folders, making Sandbox more useful as a temporary workspace. There's also talk of integrating Sandbox with Microsoft Defender for deeper automatic analysis of suspicious files—imagine right-clicking a file and choosing "Open in Windows Sandbox" without any configuration.

For now, Windows Sandbox stands as a near-perfect solution for anyone who occasionally needs to run an untrusted app but doesn't want the overhead of a full virtual machine. With a few clicks and zero cost, you gain a secure, disposable Windows environment that can save your system from a world of digital threats.