Skip to content

VersusOS

Windows Sandbox vs Hyper-V: Which Should You Use on Windows 11?

Windows Sandbox vs Hyper-V: Windows 11 Pro's throwaway Sandbox opens a clean copy of Windows in seconds and wipes it on close, while Hyper-V runs full, persistent virtual machines with checkpoints and Linux support. We compare requirements, setup, safety settings and the best uses for each.

By , Senior Hardware Editor

7 min read

Windows Sandbox vs Hyper-V: Which Should You Use on Windows 11?

It's based on Microsoft Learn's official documentation for Windows Sandbox (overview, installation and configuration pages) and for Hyper-V (overview and installation pages, plus its guide to creating a virtual machine), all read on 24 November 2026. Windows features change with updates, so check Microsoft's pages if something looks different on your PC.

If you've ever wanted to try a program without letting it near your real Windows install, Windows 11 Pro gives you two built-in options. Windows Sandbox is a disposable, clean copy of Windows that opens in a window and wipes itself when you close it. Hyper-V is Microsoft's full hypervisor for creating proper virtual machines (VMs) that keep their state, run other operating systems and can be rolled back with checkpoints. Both are free with the right edition of Windows, and both use the same Microsoft hypervisor technology underneath, but they're built for very different jobs.

The short answer

  • Use Windows Sandbox for quick, one-off jobs: opening a suspicious attachment, trying an installer you don't trust or testing a setting, where you want everything thrown away afterwards.

  • Use Hyper-V when you need a VM that lasts: running Linux or another version of Windows, keeping a test environment for weeks, or taking checkpoints you can roll back to.

Can your PC run them?

Neither feature is available on Windows 11 Home. Microsoft says Windows Sandbox is not supported on Home edition, and that Hyper-V can't be installed on Windows 10 Home or Windows 11 Home. If you're deciding between editions, see Windows 11 Home vs Pro for gaming.

Requirement

Windows Sandbox

Hyper-V

Windows editions

Pro, Enterprise, Pro Education/SE, Education

Windows 11 Pro, Enterprise or Education (Windows 10 Pro or Enterprise also listed)

Processor

AMD64, or Arm64 on Windows 11 version 22H2 and later; virtualisation enabled in the BIOS

64-bit with Second Level Address Translation (SLAT) and VM Monitor Mode Extension support

Memory

At least 4GB (8GB recommended)

At least 4GB

CPU cores

At least two (four with hyper-threading recommended)

Not specified on Microsoft's install page

Disk

At least 1GB free (SSD recommended)

Enough space for VM files and virtual hard disks

Both depend on hardware virtualisation being switched on in your motherboard's firmware. Our guide on how to enable virtualisation in the BIOS walks through it.

How to turn each one on

Both are optional Windows features rather than downloads.

  • Windows Sandbox: search for "Turn Windows Features on or off", tick Windows Sandbox, select OK and restart if prompted. Microsoft also gives a PowerShell command, run as administrator: Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" -All -Online. Our Windows Sandbox guide covers it step by step.

  • Hyper-V: open Control Panel, go to Programs > Programs and Features > Turn Windows Features on or off, tick Hyper-V and select OK, then restart when asked. The PowerShell equivalent is Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All, and Microsoft also lists a DISM command. See our guide on how to enable Hyper-V in Windows 11.

Windows Sandbox: a clean Windows that forgets everything

Microsoft describes Windows Sandbox as a lightweight, isolated desktop environment and a "disposable virtual machine". The key points from its documentation:

  • Disposable and pristine. Each launch is a fresh instance, as clean as a new Windows install. Closing it deletes all software, files and state. Since Windows 11 version 22H2, data survives restarts started inside the sandbox, which helps with installers that need a reboot.

  • Fast and light. Microsoft says it takes a few seconds to launch, supports a virtual GPU and has smart memory management. The default sandbox has a maximum of 4GB of memory.

  • Nothing from your PC by default. Programs installed on your PC aren't available inside it. Microsoft also notes that from Windows 11 version 24H2, inbox Store apps such as Calculator, Photos, Notepad and Terminal aren't available inside the sandbox.

  • One at a time. You can't run more than one sandbox at once.

Two defaults matter for safety. Networking is on, using the Hyper-V default switch, and Microsoft warns this "can expose untrusted applications to the internal network". Clipboard sharing is also on, so you can copy files in and out.

You can change these with a .wsb configuration file, a small XML file you double-click to launch a customised sandbox. Options include turning networking and the virtual GPU on or off, mapping folders from your PC (optionally read-only), running a command at sign-in, sharing your microphone, webcam or printers, Protected Client mode and setting the memory size. Microsoft says the memory setting is raised automatically to a 2,048MB minimum if you set it too low. For opening an untrusted file, Microsoft's own advice is to start a sandbox with networking disabled and map the folder containing the file in read-only mode.

Be careful with writable mapped folders. Microsoft notes that changes made to a folder mapped with write permission persist after the sandbox is closed, and that files mapped from your PC can be compromised by apps running in the sandbox.

Hyper-V: full virtual machines that stick around

Microsoft calls Hyper-V its "enterprise-grade hypervisor technology" and describes it as a type-1 hypervisor that runs directly on the hardware. On Windows 11 it's aimed at developers and IT professionals as a lightweight solution for development and testing. What it gives you that Sandbox doesn't:

  • Other operating systems. Microsoft says Hyper-V supports many versions of Windows, Linux and FreeBSD as guests.

  • Persistent VMs. A VM keeps its installed software and files until you delete it.

  • Checkpoints. You can snapshot a VM before making changes and roll back if something goes wrong.

  • Quick Create. Microsoft says Windows 11 users get Quick Create for streamlined VM setup.

  • Full control. The New Virtual Machine wizard in Hyper-V Manager lets you choose the VM generation (Microsoft recommends generation 2 unless you have a specific reason not to), memory (including Dynamic Memory), the virtual network switch and the virtual hard disk (.vhd or .vhdx), and install an OS from an ISO file. VMs can also be created with PowerShell's New-VM command.

The trade-off is effort. Microsoft's prerequisites for creating a VM include enough physical memory and disk space on your PC, and you'll need installation media (an .iso file) or an existing virtual hard disk to install an operating system.

One compatibility note: in its Windows Server requirements, Microsoft's Hyper-V install guide warns that third-party virtualisation apps relying on the same processor features, such as VMware Workstation and VirtualBox, might not start VMs or might run them unreliably while the Hyper-V hypervisor is running. Check your other virtualisation software's documentation if you use it alongside Hyper-V.

Head to head

Windows Sandbox

Hyper-V

What it is

Disposable, temporary Windows desktop

Full virtual machines

State after closing

Wiped

Kept

Guest operating systems

A clean copy of your Windows

Windows, Linux and FreeBSD, per Microsoft

Setup per use

None: open from Start

Create a VM and install an OS

Launch time

A few seconds, per Microsoft

Not stated by Microsoft

Rollback

Not needed: every launch is fresh

Checkpoints

Multiple at once

No, per Microsoft

Yes

Customisation

.wsb file: networking, folders, memory, sign-in command and more

Full VM settings in Hyper-V Manager or PowerShell

Network by default

On

Optional: pick a virtual switch when you create the VM

Windows 11 Home

No

No

Which should you use?

Choose Windows Sandbox if you want a quick, safe place to open a file or try a program and don't care about keeping anything. It's the better tool for "is this installer dodgy?" or "what does this setting do?". For risky files, use a .wsb file to turn networking off and share the file's folder read-only.

Choose Hyper-V if you need a different operating system, a test setup you'll come back to, or the safety net of checkpoints. If your main goal is running Linux tools for development or local AI rather than a full Linux desktop, WSL2 is often simpler. Our guide on setting up WSL2 with GPU support explains how.

Neither is a substitute for good security habits. Microsoft's own warnings about default networking, clipboard sharing and writable folders show that isolation is only as strong as the settings you choose.

Our verdict

Windows Sandbox and Hyper-V solve different problems. Windows Sandbox is the quick, throwaway option: a clean copy of Windows that opens in seconds and forgets everything when you close it, ideal for opening suspicious files or trying software. Hyper-V is the heavier, more capable tool for proper virtual machines that keep their state, run Linux or other Windows versions and can be rolled back with checkpoints. Both need Windows 11 Pro or higher and virtualisation enabled in the BIOS. Most home users will reach for Sandbox far more often, and Hyper-V when they need something that lasts.

The bottom line

Windows Sandbox and Hyper-V solve different problems. Windows Sandbox is the quick, throwaway option: a clean copy of Windows that opens in seconds and forgets everything when you close it, ideal for opening suspicious files or trying software. Hyper-V is the heavier, more capable tool for proper virtual machines that keep their state, run Linux or other Windows versions and can be rolled back with checkpoints. Both need Windows 11 Pro or higher and virtualisation enabled in the BIOS. Most home users will reach for Sandbox far more often, and Hyper-V when they need something that lasts.

Sources

  1. 01Microsoft Learn: Windows Sandbox
  2. 02Microsoft Learn: Install Windows Sandbox
  3. 03Microsoft Learn: Use and configure Windows Sandbox
  4. 04Microsoft Learn: Hyper-V virtualization in Windows Server and Windows
  5. 05Microsoft Learn: Install Hyper-V in Windows and Windows Server
  6. 06Microsoft Learn: Create a virtual machine in Hyper-V

About the author

Callum Reid

Senior Hardware Editor

Callum leads GPU, CPU and platform architecture coverage at Forge PC. Before joining the editorial desk, he spent nine years specifying, assembling and stress-testing custom gaming and workstation systems in the UK, with a focus on PCIe bandwidth, VRM thermal design, DDR5 memory tuning and 1440p/4K frame-time consistency.

More from Callum Reid

Read next

How to Set Up a UPS to Shut Down Your PC Automatically

How-To

How to Set Up a UPS to Shut Down Your PC Automatically

How to make a UPS shut your PC down automatically in a power cut: connect the UPS's USB data cable, install the maker's software (CyberPower PowerPanel Personal as the example), choose Keep Computer Running or Preserve Battery Power, pick shutdown or hibernation, then test it.

Marcus Thorne7 min

Clonezilla vs Rescuezilla: Which Free Disk Imaging Tool Should You Use?

Versus

Clonezilla vs Rescuezilla: Which Free Disk Imaging Tool Should You Use?

Clonezilla vs Rescuezilla: both are free bootable disk imaging and cloning tools that share an image format. Clonezilla adds network destinations, encryption, scripting and mass deployment; Rescuezilla offers a point-and-click desktop, image browsing and extra rescue tools.

Callum Reid6 min

ShareX vs Snipping Tool: Which Free Screenshot Tool Should You Use?

Versus

ShareX vs Snipping Tool: Which Free Screenshot Tool Should You Use?

ShareX vs Snipping Tool: Windows' built-in Snipping Tool is quick and now does local OCR and video snips, while free, open-source ShareX adds scrolling captures, richer annotation, automated after-capture tasks, uploads and many extra tools. Here's which suits you.

Callum Reid7 min

How to Set Up SillyTavern with a Local LLM Using KoboldCpp

How-To

How to Set Up SillyTavern with a Local LLM Using KoboldCpp

How to set up SillyTavern with a local LLM: installing it on Windows or Linux, loading a GGUF model in KoboldCpp, connecting the two, tuning GPU layers to fit your graphics card's VRAM, adjusting context settings and fixing common problems.

Marcus Thorne8 min