Windows Sandbox

The Windows Sandbox backend uses the built-in Windows Sandbox feature to run disposable, desktop-style Windows guests. Each sandbox starts from a clean slate and is discarded on exit.

Requirements

  • Windows 10/11 Pro, Enterprise, or Education (Windows Sandbox is not available on Home editions)
  • Hardware virtualization enabled in the BIOS/UEFI
  • At least 4 GB of RAM (8 GB recommended)
  • The Windows Sandbox optional feature enabled

Installation

  1. Enable the Windows Sandbox feature

    From an elevated PowerShell prompt:

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

    Reboot when prompted.

  2. Verify

    Launch Windows Sandbox once from the Start menu to confirm it is working.

Usage

heyvm --backend-type windows_sandbox

The backend accepts wsb and windows-sandbox as aliases.