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:
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
Search the Start menu for Windows Sandbox and open it.
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.
Run it inside the sandbox and see what it does.
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:
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.