How to use Windows Sandbox to safely run unknown programs

Last update: 21th October 2026
  • Windows Sandbox creates an isolated virtual environment that protects the host system from potential malware or spyware.
  • It is a disposable tool where all content is automatically deleted when the application is closed.
  • It requires the Pro, Enterprise or Education editions of Windows, and virtualization must be enabled in the BIOS.

Miniature of a caution cone on a computer keyboard, symbolizing caution and safety when running unknown programs.

I'm sure it's happened to you: you find a free utility online that seems perfect for what you need, but then you worry it might come with a Trojan or spyware. Instead of taking the risk and ending up with a slow computer or, worse, stolen data, there's a built-in system solution that's a real gem for those of us who like to tinker without breaking anything.

We're talking about Windows Sandbox, a feature that essentially creates a clean, temporary Windows environment within your own session. It's like having a testing lab where you can drop any suspicious file, and if the program turns out to be a threat, you simply close the window and everything disappears as if it never existed, leaving your main system intact and secure.

What exactly is Windows Sandbox and how does it work?

Terminal screen with code and technical data, representing software analysis and process execution in a controlled environment.

Simply put, it's a lightweight virtual machine that uses Microsoft's hypervisor-based virtualization . Unlike a conventional virtual machine (like VirtualBox), you don't need to download an ISO image or permanently dedicate gigabytes of hard drive space to it. It boots in seconds and offers an independent kernel that isolates the hardware and software from the host system.

The most powerful aspect of this tool is that it's completely disposable . Every time you open it, you have a fresh Windows installation. There's no persistence: neither the files you download, nor the programs you install, nor any registry changes are saved. Clicking the "X" to close it performs a complete and automatic cleanup of the entire session state.

  Complete guide to secure local and cloud file storage

Essential requirements to be able to use it

Not everyone can activate this feature, as it requires certain software and hardware conditions. First, you must have a version of Windows 10 or 11 Pro, Enterprise, or Education . If you have the Home version, unfortunately, you'll be left out, as Microsoft reserves this feature for professional licenses.

Regarding hardware, it's essential that your processor is 64-bit and supports virtualization extensions (Intel VT-x or AMD-V), which must be enabled in your motherboard's BIOS or UEFI . As for resources, while the minimum is 4 GB of RAM and a dual-core processor, for a smooth experience and to prevent your PC from freezing, it's ideal to have at least 8 GB of RAM and a modern mid-range multi-core processor.

Steps to activate the Isolated Space

A minimalist and clean workspace with a laptop, representing the peace of mind of keeping the main system free of malware.

Activating the Sandbox is a quick process that only needs to be done once. The most common way is to go to the Start menu and type " Turn Windows features on or off ." Once the list opens, simply find the box that says " Windows Sandbox ," check it, and click OK. The system will ask you to restart your computer to apply the changes, a step that is required for the hypervisor to load correctly.

If you prefer not to click so much and use the console, you can open PowerShell as administrator and run the command Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" -All -OnlineAfter running it, you will also need to restart your computer for the tool to appear in your Start menu search bar.

  How to enable ransomware protection in Windows 11

How to put files and programs into the Sandbox

A very common question is how to transfer the file. .exe or .zip that we want to analyze from our real desktop to the isolated environment. Many people try to drag the files, but since it's a closed environment, this doesn't work by default. The solution is the simplest in the world: classic copy and paste.

Simply right-click on the program in your main Windows installation (or press Ctrl+C ), open the Windows Sandbox window, and paste the file there using Ctrl+V . This transfers the file to the safe environment, and you can then run the installer to see if the program behaves strangely or attempts to make malicious changes to the system without putting your actual storage drive at risk.

Advanced configurations and use cases

For more technical users, there is the option to create configuration files with the extension . .wsbThese files allow you to customize the experience, for example map a specific folder from your PC to make it visible within the Sandbox in read-only mode, or even disable network connection to prevent malware from attempting to communicate with an external server.

Besides testing dubious software, this tool is fantastic for browsing dangerous websites without risk of infection, analyzing suspicious email attachments, or even maintaining clean development environments . For example, you can test a specific version of Python and its libraries without cluttering your main system with dependencies that are a pain to uninstall later.

  Useful scripts for Windows 11 to automate, clean, and protect your PC

Having such a robust security zone allows for complete freedom of experimentation, transforming the computer into a laboratory where mistakes have no consequences. By combining kernel isolation with the ease of use of a disposable environment, Windows Pro provides an essential layer of protection to prevent a simple oversight when downloading freeware from resulting in a computer disaster.