Skip to content

How-ToOS

How to Use Windows Sandbox to Test Apps and Drivers Safely in Windows 11

Windows Sandbox is a disposable, isolated copy of Windows in Windows 11 Pro, Enterprise and Education (not Home). Turn it on in Windows Features with virtualisation enabled, test downloads inside it, and close it to delete everything. A .wsb file can disable networking and map a folder read-only. It can't test real GPU drivers.

By , Editorial team

4 min read

How to Use Windows Sandbox to Test Apps and Drivers Safely in Windows 11

Downloaded a tool you're not sure about, or want to try a utility before letting it near your main Windows install? Windows Sandbox gives you a clean, disposable Windows desktop in a window. Close it and everything inside is deleted. This guide follows Microsoft's Windows Sandbox documentation. Forge PC hasn't tested every app in the sandbox, and it isn't a substitute for antivirus or for backups.

What Windows Sandbox is

Microsoft describes Windows Sandbox as "a lightweight, isolated desktop environment for safely running applications". It uses hardware-based virtualisation and the Microsoft hypervisor to run a separate kernel, so apps installed inside it stay isolated from your main system. Key points from Microsoft's documentation:

  • It's disposable. Closing the sandbox deletes all software, files and state. Each launch starts fresh.

  • It starts empty. Apps installed on your PC aren't available inside it; you install what you need inside the sandbox.

  • Restarts are allowed. Since Windows 11 version 22H2, data persists through restarts started inside the sandbox, which helps with installers that need a reboot.

  • Some inbox apps are missing. From Windows 11 version 24H2, Microsoft says Store apps such as Calculator, Photos, Notepad and Terminal aren't available inside the sandbox.

What you need

  • Windows 11 Pro, Enterprise or Education. Microsoft says Windows Sandbox isn't supported on Windows Home. Our Windows 11 Home vs Pro guide covers the other differences.

  • Virtualisation enabled in the BIOS. See how to enable virtualisation in the BIOS if it's off.

  • At least 4GB of RAM (8GB recommended), 1GB of free disk space (an SSD is recommended) and at least two CPU cores (four with hyper-threading recommended).

Step 1: Turn Windows Sandbox on

  1. Open the Start menu, type Windows Features and open Turn Windows features on or off.

  2. Tick Windows Sandbox and click OK.

  3. Restart if prompted.

If the option is greyed out, Microsoft says your PC doesn't meet the requirements, so check virtualisation in the BIOS first. Alternatively, open PowerShell as administrator and run:

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

Step 2: Open it and test something

  1. Search the Start menu for Windows Sandbox and open it.

  2. Copy the installer or file you want to test from your desktop and paste it into the sandbox window. Microsoft says clipboard sharing is on by default, so files can be pasted in.

  3. Run it inside the sandbox and see what it does.

  4. Close the sandbox when you're finished. A dialog asks you to confirm that all sandbox content will be deleted.

The default sandbox gets up to 4GB of memory, with networking, the virtual GPU (on non-Arm PCs), microphone input and clipboard sharing enabled, according to Microsoft.

Step 3: Make it safer with a .wsb file

By default, networking is on. Microsoft warns that this "can expose untrusted applications to the internal network". For opening a file you don't trust, Microsoft suggests starting a sandbox with networking disabled and mapping the folder that contains the file in read-only mode. You do that with a configuration file: a plain text file with a .wsb extension. For example, save this in Notepad as Offline.wsb, changing the folder path to suit:

<Configuration>
  <Networking>Disable</Networking>
  <MappedFolders>
    <MappedFolder>
      <HostFolder>C:\Users\Public\Downloads\ToTest</HostFolder>
      <ReadOnly>true</ReadOnly>
    </MappedFolder>
  </MappedFolders>
</Configuration>

The host folder must already exist, and Microsoft says it's mapped to the sandbox desktop unless you specify another location. Double-click the .wsb file to launch a sandbox with those settings. Microsoft's configuration documentation also lists options for the virtual GPU (vGPU), memory, clipboard redirection and a command to run at logon.

What the sandbox is good for, and what it isn't

Good for:

  • Trying a free utility, overlay or RGB tool before installing it for real.

  • Opening a suspicious document or archive with networking turned off.

  • Checking what an installer bundles before you run it on your main system.

Not good for:

  • Testing graphics drivers or hardware tools. The sandbox runs in a virtual machine with a virtualised GPU (or software rendering if vGPU is off), so it can't load a real GPU driver or reach your hardware directly. For driver problems, use our guides to rolling back a graphics driver and System Restore.

  • Benchmarking or gaming. Performance inside a VM isn't representative of your PC.

  • Proving a file is safe. Some malware detects virtual machines and behaves differently. If in doubt, don't run it on your main system at all.

Our verdict

Windows Sandbox is one of the most useful features in Windows 11 Pro that most people never switch on. Turn it on once, keep an offline .wsb file on your desktop, and test unfamiliar downloads there before they touch your real install. Just remember its limits: it can't test GPU drivers or hardware utilities properly, and it's no replacement for good backups and Microsoft Defender.

The bottom line

Windows Sandbox is one of the most useful features in Windows 11 Pro that most people never switch on. Turn it on once, keep an offline .wsb file on your desktop, and test unfamiliar downloads there before they touch your real install. Just remember its limits: it can't test GPU drivers or hardware utilities properly, and it's no replacement for good backups and Microsoft Defender.

Sources

  1. 01Microsoft Learn, Windows Sandbox
  2. 02Microsoft Learn, Install Windows Sandbox
  3. 03Microsoft Learn, Use and configure Windows Sandbox

About the author

Forge PC Staff

Editorial team

The shared byline for articles researched, written and edited by the Forge PC editorial team. How we source, check and correct our work is set out in our editorial policy.

More from Forge PC Staff

Read next

How to Enable Wake-on-LAN in Windows 11 (and Why It Stops Working)

How-To

How to Enable Wake-on-LAN in Windows 11 (and Why It Stops Working)

To use Wake-on-LAN, connect the PC by Ethernet, enable wake in the BIOS, turn on Wake on Magic Packet and 'Allow this device to wake the computer' in Device Manager, and wake the PC from sleep. Microsoft says Windows doesn't arm the network adapter after a Fast Startup shutdown, so use sleep or turn Fast Startup off.

Forge PC Staff4 min

Windows 11 Update Stuck or Failing? 9 Fixes to Try

How-To

Windows 11 Update Stuck or Failing? 9 Fixes to Try

If Windows Update is stuck or failing, back up your files and run the Windows Update troubleshooter in the Get Help app. Then check power and internet, use an admin account, unplug extra hardware, clear the update cache, fix the date and time, update drivers and free at least 20GB of space before trying again and restarting.

Forge PC Staff3 min

How to Use Speculative Decoding in LM Studio to Speed Up Local LLMs

How-To

How to Use Speculative Decoding in LM Studio to Speed Up Local LLMs

Speculative decoding in LM Studio pairs your main model with a much smaller draft model from the same family to speed up generation without changing output quality. Turn on Developer Mode, load the main model and pick a draft model in the chat sidebar. LM Studio says speed-ups vary by prompt and can vanish if the draft model is too big.

Forge PC Staff3 min

How to Fix Ethernet Stuck at 100Mbps in Windows 11

How-To

How to Fix Ethernet Stuck at 100Mbps in Windows 11

If Windows 11 shows an Ethernet link speed of 100Mbps instead of 1Gbps, Intel says the cause is almost always a cable. Check the link speed in Settings, make sure Speed & Duplex is set to Auto Negotiation, then swap in a known-good Cat 6 cable plugged straight into the router before blaming switches, wall sockets or the motherboard port.

Forge PC Staff3 min