Windows Sandbox is a clean, disposable Windows that opens in a window. Whatever you install or run inside vanishes when you close it. This guide covers which edition you need, how to enable it and how to configure it to open dubious files with minimal exposure.
In short
- Works on Windows 10 and 11 Pro, Enterprise and Education; not on Home.
- Needs virtualization enabled in BIOS/UEFI, at least 4 GB RAM and 2 cores.
- Closing it erases everything: programs, files and settings.
- By default it has network and shared clipboard; a
.wsbfile lets you disable them.- It is a layer of protection, not an absolute guarantee.
What it is and how it works
Windows Sandbox is a lightweight virtual machine using Microsoft’s hypervisor. It shares the system files of the main Windows (the host), so it starts in seconds and uses little disk.

Three key ideas:
- Always starts clean. Each launch is like a fresh install.
- It is disposable. On closing, Windows warns that all content will be discarded.
- Hardware isolated. It has its own Windows kernel separate from the host.
Since Windows 11 22H2, if you restart from inside the sandbox (for example because an installer asks), data is kept through that restart. Closing the window still erases it.
Requirements
| Requirement | Minimum | Recommended |
|---|---|---|
| Edition | Pro, Enterprise, Education or Pro Education/SE | — |
| Version | Windows 10 1903 or Windows 11 | Up-to-date Windows 11 |
| Architecture | AMD64 (x64); Arm64 from Windows 11 22H2 | — |
| Virtualization | Enabled in BIOS/UEFI | — |
| RAM | 4 GB | 8 GB |
| Free disk | 1 GB | On SSD |
| CPU | 2 cores | 4 cores with hyper-threading |
Windows Home is not supported. On Home the option does not even appear in the features list.
Check virtualization
Open Task Manager (Ctrl + Shift + Esc), Performance tab → CPU. Bottom right should say Virtualization: Enabled.
If it says “Disabled”, enter BIOS/UEFI and enable it; depending on the maker it is Intel VT-x, Intel Virtualization Technology, AMD-V or SVM Mode.
How to enable it
Graphical interface
- Press Start and type
Windows features. - Open Turn Windows features on or off.
- Tick Windows Sandbox.
- Click OK and restart when asked.
- Search Windows Sandbox in Start to open it.
PowerShell
Open PowerShell as administrator and run:
Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" -All -Online
Restart when done.
If Windows is itself a virtual machine (for example in Hyper-V), the host must have nested virtualization enabled.
Basic use: test a dubious installer

- Open Windows Sandbox. You see an empty Windows desktop.
- In your normal Windows, copy the file (Ctrl + C).
- Paste it on the sandbox desktop (Ctrl + V). The clipboard is shared by default.
- Run it inside and watch: what it installs, windows it opens, whether it asks for odd permissions.
- Close the sandbox window and confirm. Everything vanishes.
That way you can check, say, whether a free installer adds toolbars or extra programs without dirtying your system.
Default configuration
Per Microsoft’s documentation, without configuration the sandbox starts like this:
| Option | Default |
|---|---|
| Memory | Up to 4 GB |
| Virtual GPU (vGPU) | Enabled (except Arm64) |
| Network | Enabled |
| Microphone | Enabled |
| Camera | Disabled |
| Printers | Disabled |
| Clipboard | Enabled |
With network on, a malicious program could try to talk to other devices on your local network. For truly suspicious files, turn it off.
Create a .wsb file
A .wsb file is XML holding the sandbox configuration. Double-click it and Windows Sandbox opens with those settings.
- Open Notepad.
- Paste this content:
<Configuration>
<Networking>Disable</Networking>
<vGPU>Disable</vGPU>
<ClipboardRedirection>Disable</ClipboardRedirection>
<AudioInput>Disable</AudioInput>
<MappedFolders>
<MappedFolder>
<HostFolder>C:\Suspicious</HostFolder>
<SandboxFolder>C:\Users\WDAGUtilityAccount\Desktop\Suspicious</SandboxFolder>
<ReadOnly>true</ReadOnly>
</MappedFolder>
</MappedFolders>
<MemoryInMB>4096</MemoryInMB>
</Configuration>
- Save it as
"Safe-sandbox.wsb"(with quotes, so Notepad does not add.txt). - Create the
C:\Suspiciousfolder and put what you want to test in it. - Double-click the
.wsb.
What each line does

- Networking: Disable → no network. The program cannot download anything or see your local network.
- vGPU: Disable → software rendering. Microsoft notes vGPU can widen the attack surface.
- ClipboardRedirection: Disable → no copy and paste between sandbox and PC.
- AudioInput: Disable → the sandbox cannot use the microphone.
- MappedFolder with ReadOnly: true → the folder appears on the sandbox desktop but cannot be modified inside.
WDAGUtilityAccountis the sandbox’s default user. - MemoryInMB → assigned memory. If less than needed to boot, it rises to 2048 MB automatically.
The host folder (HostFolder) must exist, otherwise the sandbox does not start.
Run something at startup
With LogonCommand you can launch a command on entry, for example open the shared folder:
<LogonCommand>
<Command>explorer.exe C:\Users\WDAGUtilityAccount\Desktop\Suspicious</Command>
</LogonCommand>
It goes inside Configuration, like the other options.
Limitations to know
- Not supported on Windows Home.
- One instance at a time. You cannot open two sandboxes.
- Saves nothing between sessions. You reinstall what you need each time.
- No built-in Store apps. Since Windows 11 24H2, Microsoft states Calculator, Photos, Notepad or Terminal are not available inside.
- Window size is not configurable from the
.wsb. - Writable shared folders persist. If you map with
ReadOnlyfalse, changes inside stay on your real disk.
Common mistakes
- “Windows Sandbox” missing from the list. Your edition is Home or the PC does not meet requirements.
- Virtualization error on launch. Virtualization disabled in BIOS/UEFI.
- Testing malware with network on. For dubious files, always use a
.wsbwithNetworkingDisable. - Sharing writable folders. A malicious program could encrypt or delete what is there.
- Blind trust. Some programs detect a virtual machine and hide their real behavior. Complement with an antivirus scan.
Frequently asked questions
Do I need another Windows license?
No. It is included in supported editions.
Can I use it to browse dubious websites?
Yes, one of Microsoft’s suggested uses. There you need network on, so do not share folders or clipboard.
Does my antivirus detect it?
Microsoft Defender runs normally on the host. Inside, the environment is discarded on close, so nothing remains to clean.



