Leave a Review
Windows Sandbox: Safely Test Suspicious Files and Apps
28 Oct 2026 • 15 min read • 14 views •
Share:

Windows Sandbox: Safely Test Suspicious Files and Apps

A
AroraShop
Content Writer

Windows Sandbox: Safely Test Suspicious Files or Apps Using This Built-In Windows Feature

You get a file from a stranger. Or you download a free tool from a site you do not know. You want to open it, but you are worried. What if it harms your PC?

Windows has a built-in answer. It is called Windows Sandbox. It gives you a clean, temporary copy of Windows. You can open the file there. When you close it, everything inside is deleted.

In this guide, you will learn what Windows Sandbox is and how it works. You will see who can use it and how to turn it on. You will also learn how to test files step by step, and what mistakes to avoid.

Windows desktop with a small isolated sandbox window holding a suspicious file safely away from the main system
Windows Sandbox opens as a separate, disposable Windows desktop.

Quick Answer: What Is Windows Sandbox?

Windows Sandbox is a light, isolated desktop inside Windows. Microsoft says it lets you run apps safely in isolation. Each time you open it, it starts fresh, like a brand-new Windows install. When you close it, all software, files, and settings inside are deleted for good.

It is a good place to try a file or app you do not trust. Your main Windows stays separate from it.

Key Facts at a Glance

QuestionShort Answer
Is it free?It is built into supported Windows editions. You do not buy a separate app.
Which editions work?Windows Pro, Enterprise, Pro Education/SE, and Education.
Does Windows Home work?No. Microsoft says Home is not supported.
What RAM do I need?At least 4 GB. Microsoft suggests 8 GB.
What disk space do I need?At least 1 GB free. An SSD is better.
Is anything saved?No. Closing the sandbox deletes everything inside.
Can I run two at once?No. Only one instance can run at a time.

How Windows Sandbox Works

You do not need to know every detail. But a little background helps you trust the tool and use it well.

It Uses a Separate Kernel

The kernel is the core part of an operating system. Windows Sandbox uses the Microsoft hypervisor to run its own separate kernel. This keeps the sandbox apart from your main Windows. Microsoft says it uses hardware-based virtualization for this.

It Does Not Need a Second Copy of Windows

A normal virtual machine needs its own Windows files. Windows Sandbox does not. It builds a fresh base image from the Windows already on your PC. Microsoft calls this a dynamic base image. Most Windows files do not change, so they can be shared with the sandbox.

This is why Windows Sandbox does not need a big download. Before you install it, the package is only about 30 MB, according to Microsoft.

It Shares Your PC's Power Wisely

Windows Sandbox uses smart memory and CPU sharing. Your main Windows can take back memory when it needs it. The host also decides when the sandbox gets CPU time. This helps your PC stay smooth while the sandbox runs.

When Should You Use Windows Sandbox?

Use it any time you are unsure about a file or app. Here are some common cases.

  • Unknown software: You found a free tool online and want to try it first.
  • Email attachments: A file came from someone you do not know.
  • Old installers: You have an old setup file and are not sure it is safe.
  • Setting tests: You want to change a Windows setting and see what happens.
  • Clean-install tests: You want to see how an app behaves on a fresh Windows.
  • Learning: You want to explore safely without fear of breaking your PC.

IT teams use it too. It gives them a quick, clean place to test software before using it at work.

What Windows Sandbox Cannot Do

Windows Sandbox is helpful. But it is not magic. You should know its limits before you trust it.

It Is Not an Antivirus

Windows Sandbox does not scan files. It does not tell you if a file is bad. It only gives you a safe place to open it. You still need to watch what the file does.

The Internet Is On by Default

Microsoft says Windows Sandbox turns on the network connection by default. That means a bad app inside the sandbox may still connect to the internet. You can turn the network off with a configuration file. We show how later in this guide.

No Tool Is 100% Perfect

Microsoft built the sandbox to isolate apps from your PC. But no security tool gives a promise of total safety. Keep Windows updated. Follow the safety tips below. Treat unknown files with care, even inside the sandbox.

Your Own Apps Are Not Inside

Microsoft says software installed on your main PC is not available in the sandbox. Starting with Windows 11 version 24H2, built-in store apps like Calculator, Photos, Notepad, and Terminal are also missing inside it. You may need to download the tools you want to use.

Windows Sandbox Requirements

Your PC must meet a few simple needs. Check this list before you try to turn it on.

RequirementWhat You Need
Windows versionWindows 11, or Windows 10 version 1903 or later (Pro, Enterprise, or Education)
EditionPro, Enterprise, Pro Education/SE, or Education. Not Home.
Processor typeAMD64, or Arm64 on Windows 11 version 22H2 and later
VirtualizationTurned on in the BIOS or UEFI
Memory (RAM)At least 4 GB (8 GB recommended)
Free disk spaceAt least 1 GB (SSD recommended)

How to Check Your Windows Edition

  1. Open Settings.
  2. Go to System, then About.
  3. Look under Windows specifications.
  4. Check the line named Edition.

If it says Home, Windows Sandbox will not work on that PC.

How to Check If Virtualization Is On

You can check this in Task Manager.

  1. Press Ctrl + Shift + Esc to open Task Manager.
  2. Click the Performance tab.
  3. Click CPU.
  4. Look for the word Virtualization on the right side.

If it says Enabled, you are ready. If it says Disabled, you must turn it on in your BIOS or UEFI settings. The exact steps depend on your PC brand. Search for your PC model and "enable virtualization" to find the right steps.

Task Manager Performance tab showing CPU details with the Virtualization setting marked as Enabled
Check the Virtualization line in Task Manager before you start.

How to Turn On Windows Sandbox

There are two easy ways. Pick the one you like.

Method 1: Use Windows Features

  1. Click the search bar on the taskbar.
  2. Type Turn Windows features on or off and open it.
  3. Scroll down and find Windows Sandbox.
  4. Tick the box next to it.
  5. Click OK.
  6. Restart your PC if Windows asks you to.

If you cannot find Windows Sandbox in the list, your PC does not meet the requirements. Microsoft says the same.

Method 2: Use PowerShell

  1. Right-click the Start button.
  2. Choose Terminal (Admin) or Windows PowerShell (Admin).
  3. Paste the command below and press Enter.
  4. Restart your PC when it finishes.
Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" -All -Online

Using Windows Sandbox on a Virtual Machine

Do you want to run it inside a virtual machine? Then you must turn on nested virtualization for that machine. Microsoft explains this in its install guide.

Can You Use Windows Sandbox on Windows Home?

No. Microsoft says Windows Sandbox is not supported on Windows Home. This is a common question, so here are your options.

  • Upgrade to Windows Pro: This gives you Windows Sandbox. Check the current price in the Microsoft Store or on Microsoft's site, because prices change.
  • Use a different virtual machine tool: Free and paid tools exist that run on Home. They take more setup and more disk space.
  • Use an online scanner first: A service like VirusTotal checks files with many security engines. It does not run the file for you, so it is not the same as a sandbox.

How to Open and Use Windows Sandbox

  1. Click the Start menu.
  2. Type Windows Sandbox.
  3. Click the app to open it.
  4. Wait a few seconds. A new Windows desktop will appear in a window.

That is it. You now have a clean Windows to use. It looks like a normal desktop. You can use Microsoft Edge to browse and download files.

How to Move a File into the Sandbox

You can copy and paste a file from your main PC into the sandbox window.

  1. On your main Windows, right-click the file and choose Copy. Or select it and press Ctrl + C.
  2. Click inside the Windows Sandbox window.
  3. Press Ctrl + V on the sandbox desktop.

Drag and drop may not work. Copy and paste is the safest method to use.

A Better Way: Download Inside the Sandbox

Do you have a link to a file or app? Do not download it on your main PC. Open the link inside the sandbox instead. That way the file never touches your real Windows at all.

Windows Sandbox window open on a Windows 11 desktop with a browser downloading a file inside the sandbox
Download and open unknown files inside the sandbox window, not on your main desktop.

Step-by-Step: How to Test a Suspicious File Safely

Follow these steps each time. A clear routine keeps you safe.

  1. Open Windows Sandbox. Start it from the Start menu.
  2. Get the file inside. Download it in the sandbox, or copy and paste it in.
  3. Do not sign in to anything. Never type your real email, bank, or social media passwords in the sandbox.
  4. Open the file or run the installer. Watch what it does.
  5. Look for warning signs. See the list below.
  6. Close the sandbox. Click the X on the window. Confirm when Windows asks.
  7. Decide. If the file acted strangely, do not run it on your main PC. Delete it.

Warning Signs to Watch For

  • The app asks for your passwords or card details right away.
  • It opens many pop-up windows or ads.
  • It tries to install extra programs you did not ask for.
  • It asks for admin rights for no clear reason.
  • It changes your browser home page or search engine.
  • It tries to connect to strange websites.
  • It claims your PC is infected and asks you to pay.

Remember one thing. A file that looks fine in the sandbox may not be safe. Some bad software hides its actions. If you still do not trust a file, do not use it.

What Happens When You Close the Sandbox?

Closing Windows Sandbox deletes everything inside it. This includes software, files, and settings. Microsoft says you get a fresh sandbox every time you open it.

This is great for safety. But it also means you must copy out anything you want to keep. Be careful with this. If a file is suspicious, you should not copy it out at all.

One note for newer Windows. Starting with Windows 11 version 22H2, data stays after a restart that you start from inside the sandbox. This helps with apps that need a reboot to finish setup. Closing the window still deletes everything.

Customize Windows Sandbox with a .wsb File

You can change how the sandbox starts. You do this with a configuration file. It is a small text file with the .wsb extension. It uses a simple XML format.

Microsoft's documentation and tech community posts list options like these:

  • Networking: turn the internet on or off inside the sandbox.
  • Mapped folders: share a folder from your PC with the sandbox. You can set it as read-only.
  • Logon command: run a command when the sandbox starts.
  • Memory: choose how much RAM the sandbox gets (in MB).

Example: A Sandbox with No Internet and a Read-Only Folder

This setup is good for testing a file that you do not want to reach the internet. First, create a folder named SandboxShare on your C: drive. Put the file you want to test inside it.

Next, open Notepad. Paste the text below. Save the file as safe-test.wsb. Choose "All files" as the file type so Notepad does not add .txt.

<Configuration>
  <Networking>Disable</Networking>
  <MappedFolders>
    <MappedFolder>
      <HostFolder>C:\SandboxShare</HostFolder>
      <ReadOnly>true</ReadOnly>
    </MappedFolder>
  </MappedFolders>
</Configuration>

Now double-click the file. Windows Sandbox opens with the internet off. Your shared folder is there to use, and the sandbox cannot change its files.

If the app you are testing needs the internet, this setup will not work for it. In that case, remove the Networking line. Then the network works again.

Notepad window showing a Windows Sandbox configuration file with networking disabled and a read-only folder
A short .wsb file can turn off the internet and share a folder as read-only.

Safety Tips for Mapped Folders

  • Share a small folder made only for testing. Never share your whole C: drive.
  • Use read-only mode when you can.
  • Never share folders that hold your private documents or photos.

Windows Sandbox vs Virtual Machine

You may ask why you should not just use a full virtual machine (VM). Both are useful. They fit different needs.

FeatureWindows SandboxFull Virtual Machine
SetupTurn on one featureCreate and install a full VM
Saved dataDeleted when closedSaved until you delete it
Resource useLighter, per MicrosoftUsually heavier
Best forQuick, one-time testsLong projects and custom setups
Other operating systemsNo, it runs Windows onlyMany types can run

Microsoft describes Windows Sandbox as a light, disposable environment inside your current Windows. Its own FAQ says it is more resource efficient than a full VM. Choose a full VM if you need to keep your work between sessions.

Common Problems and Easy Fixes

Windows Sandbox Is Missing from the Features List

Check three things. First, make sure you use Windows Pro, Enterprise, or Education. Second, confirm virtualization is on. Third, check that your Windows version is new enough.

It Will Not Start

Turn virtualization on in the BIOS or UEFI. Also confirm you have at least 4 GB of RAM. Restart your PC after turning the feature on.

I Cannot Open a Second Sandbox

This is normal. Windows Sandbox only lets you run one instance at a time.

My Favorite App Is Missing

Apps from your main PC are not inside the sandbox. You must install them there again each time. On Windows 11 version 24H2 and later, some built-in store apps like Notepad and Photos are also missing.

It Fails to Update to the Latest Version

Microsoft says to check three things. Your device needs internet access. It needs Windows Update. It also needs the Microsoft Store.

Mouse Buttons Feel Wrong

On older builds, Windows Sandbox may not follow your mouse settings. Left-handed users may need to change this by hand inside the sandbox. Microsoft says newer Windows 11 versions follow the host settings.

Mistakes to Avoid

  • Typing real passwords. A bad app could capture them, even inside the sandbox.
  • Leaving the internet on without need. Turn it off when the test does not need it.
  • Sharing a folder with write access. Use read-only mode.
  • Copying files out after a bad test. If a file looks bad, delete it.
  • Thinking the sandbox is an antivirus. It only gives you a safe place to look.
  • Skipping Windows updates. Updates fix security problems. Keep your PC current.

How to Turn Off or Remove Windows Sandbox

You can remove it if you no longer need it.

  1. Open Settings.
  2. Go to System, then Optional features.
  3. Click More Windows features.
  4. Scroll down and untick Windows Sandbox.
  5. Click OK and restart if asked.

Final Thoughts

Windows Sandbox is one of the easiest ways to test a risky file or app. It is built into supported Windows editions. It starts fast. It deletes everything when you close it.

Use it as a safe first step, not your only step. Keep your system updated. Do not enter real passwords. Turn off the internet when you can. And if a file still feels wrong, do not use it.

If you use Windows Home, you cannot use this feature unless you upgrade. Other options like virtual machine tools and online scanners can still help you stay safe.

Frequently Asked Questions

What is Windows Sandbox used for?

It is used to run unknown or suspicious apps and files in an isolated Windows desktop. It is also used to test software and settings without changing your main PC.

Is Windows Sandbox safe?

It uses a separate kernel and hardware-based virtualization to isolate apps from your main Windows. This makes it much safer than opening a file on your main PC. But no security tool is perfect, so follow the safety tips.

Is Windows Sandbox free?

It is included with supported Windows editions. These are Pro, Enterprise, Pro Education/SE, and Education. You do not buy it as a separate product.

Does Windows Sandbox work on Windows 11 Home?

No. Microsoft says Windows Sandbox is not supported on Windows Home edition.

Does Windows Sandbox save my files?

No. Closing it deletes all software, files, and settings inside. You get a fresh copy the next time you open it.

Can malware escape from Windows Sandbox?

Windows Sandbox is built to keep apps inside it. But no tool can promise total safety. Keep Windows updated. Share only read-only folders. Do not enter real passwords inside the sandbox.

Does Windows Sandbox have internet access?

Yes, by default. You can turn it off with a .wsb configuration file.

How much RAM do I need for Windows Sandbox?

Microsoft lists at least 4 GB of RAM. It recommends 8 GB for better results.

Can I run more than one Windows Sandbox at the same time?

No. Microsoft says only one instance can run at a time.

How is Windows Sandbox different from Hyper-V?

Windows Sandbox is light and disposable. It runs inside your current Windows and deletes itself on close. A full virtual machine keeps its data and can be set up in many ways, but it needs more setup.

Sources and Further Reading