How to Turn On Windows Sandbox in Windows 11
- 3 ways to do it
- Needs administrator rights
- Windows Sandbox needs Windows 11 Pro, Enterprise or Education
- Includes a restart or sign-out
Windows Sandbox is a built-in, disposable desktop on Windows 11 that lets you run untrusted apps and files without risking your main PC. It is available in Pro, Enterprise, and Education, and these steps apply to a currently supported version (25H2 or 26H2). Every time you close it, Windows deletes all of its files and changes. Windows 11 Home does not include it, and there is no supported way to add it.
Check these before you start:
- Your PC needs a 64-bit CPU with at least two cores, 4 GB of RAM (8 GB is more comfortable), and about 1 GB of free disk space.
- Hardware virtualization must be on in your BIOS/UEFI, where it is usually called Intel VT-x or AMD-V (SVM Mode). To check, open Task Manager, go to the Performance tab, click CPU, and look for Virtualization: Enabled.
- You need an administrator account.
If virtualization is off, note your current BIOS/UEFI settings before you change anything, so you can restore them. Sandbox needs no separate virtual machine disk setup, because Windows builds a fresh copy of itself each time.
To turn on Windows Sandbox in Windows 11, open Start, type optionalfeatures.exe, press Enter, tick Windows Sandbox in the Windows Features list, click OK, and restart. Windows Sandbox is only available on Windows 11 Pro, Enterprise, and Education, and virtualization must be enabled in your BIOS/UEFI.
What is Windows Sandbox?
Windows Sandbox gives you a safe, temporary desktop for running untrusted apps or files. It looks like a second copy of Windows 11 running in a window on your desktop. Behind the scenes it uses virtualization (software that runs a separate system inside your own), which is why the BIOS/UEFI setting matters.
Because the two systems are isolated, anything you do inside Sandbox stays there. It disappears the moment you close the window.
Why use it? It is useful when you want to test an installer, open a file from an unknown sender, or check a download you don’t fully trust. If the software turns out to be harmful, you close the window and the damage goes with it.
One caution: Sandbox shares your network connection by default. Software inside it can still reach the internet and other devices on your network, so don’t type real passwords into anything you are testing.
You can change this with a .wsb configuration file. This is a small text file that tells Sandbox how to start, for example with networking turned off or with a folder from your PC shared into it. Double-click the file to open Sandbox with those settings. Share a folder only when you trust what you will run, because the software inside can reach its contents.
What happens when done? When you close the Sandbox window, Windows warns you that its content will be discarded. Confirm, and everything inside is deleted: files, installed programs, and settings. The next time you open Sandbox, you get a clean desktop again.
Restarting from inside Sandbox does not wipe it. Only closing the window does. If you want to keep something, copy it out to your main desktop before you close the window.
How to Turn On Windows Sandbox
Method 1Using Apps & Features
- Press Win+R on your keyboard. The Run box opens at the left end of the taskbar. If you’ve moved the taskbar to the top, left or right of the screen, it opens near that edge.
- Type
optionalfeatures.exeand press Enter. This opens the list of optional Windows features. - Wait for the Windows Features window to open. It shows a list of optional features. Scroll down until you find Windows Sandbox.
- Tick the box next to Windows Sandbox. If the box is greyed out or missing, you are probably on Windows 11 Home, or virtualization is turned off in your BIOS/UEFI.
- Click OK. The box now shows a tick, and Windows starts to gather the files it needs.
- Wait while Windows installs the feature. A progress window appears and then reports that the changes are complete. Click Restart now when prompted. Sandbox will not appear in the Start menu until you restart.

That’s it. You have turned on Windows Sandbox with the built-in Windows Features menu, with no extra software. You opened the optional features list, ticked the box for the sandbox tool, and let Windows install the files it needs. This is the most direct method if you prefer clicking through menus to typing commands.
To undo it later, open the same window, clear the Windows Sandbox box, click OK, and restart when asked.

The Windows Features method needs no downloads. Windows already has the sandbox files, and ticking the box switches the feature on. The change applies to all user accounts on the PC. A restart is needed to finish the setup.
If the box won’t tick or the entry is missing, check your Windows edition under Settings System About. The edition must be Pro, Enterprise, or Education. Then check that virtualization is enabled in your BIOS/UEFI, using the Task Manager check described at the start of this guide.
Method 2Using Command Prompt
- Click the Start button and type Command Prompt. It appears at the top of the search results.
- [Admin Required] Right-click Command Prompt and choose Run as administrator. Click Yes if User Account Control asks for permission. The window title should start with “Administrator”. The command will fail without these rights.
- In the Command Prompt window, type this and press Enter:
dism /online /Enable-Feature /FeatureName:"Containers-DisposableClientVM" /All. A progress bar runs, and you should see a message that the operation completed successfully. - Restart your computer after the command finishes. If Windows asks whether you want to restart now, you can answer there. Sandbox is not ready to use until you restart.

That’s it. Windows Sandbox is now installed, and it is ready to open after the restart.
If the command returns an error, first check that the window really is running as administrator. Also check that you are on a Pro, Enterprise, or Education edition, and that virtualization is turned on in your BIOS/UEFI.
Method 3Using PowerShell
You can also use PowerShell, another command-line tool built into Windows 11. It does the same job as Command Prompt, so use whichever you are more comfortable with:
- Click the Start button and type PowerShell. Windows PowerShell appears in the results.
- [Admin Required] Right-click Windows PowerShell and choose Run as administrator. Click Yes on the User Account Control prompt. Without administrator rights, the command is refused.
- Type this command and press Enter:
Enable-WindowsOptionalFeature -Online -FeatureName "Containers-DisposableClientVM" -All. Wait for it to finish. It may take a minute while Windows adds the feature. - Restart your computer when the command is done. PowerShell may ask whether you want to restart now. Either way, Sandbox only becomes available after the restart.

You should now have Windows Sandbox installed through PowerShell. After the restart, search for Windows Sandbox in the Start menu to confirm it is there.
If it is missing, repeat the steps and look for error messages in the PowerShell window. An error usually points to a missing administrator window, an unsupported edition, or virtualization that is still off.
How to Turn Off Windows Sandbox
To turn off Windows Sandbox, an administrator can run one of the commands below. They disable the Windows Sandbox optional feature, so the isolated environment it creates is no longer available on this PC. Close any open Sandbox window first, because anything inside it is lost anyway. Run the command from a window opened with Run as administrator, then restart if Windows asks you to.
You can also do this from the Windows Features window by clearing the Windows Sandbox box. To bring Sandbox back later, repeat any of the turn-on methods above.
Command Prompt: dism /online /Disable-Feature /FeatureName:"Containers-DisposableClientVM"
PowerShell: Disable-WindowsOptionalFeature -Online -FeatureName "Containers-DisposableClientVM"
That’s it. After the restart, Windows Sandbox is turned off and no longer appears in the Start menu. Nothing else on your PC changes.
How to Use Windows Sandbox
Once Sandbox is turned on and you have restarted, you can open it by searching for the app in the Start menu. It opens a separate desktop window where you can copy files in, test installers, and browse the web safely. Opening it the first time can take a short while. After that, it usually starts within seconds.
- Click the Start button and type Windows Sandbox. The app appears at the top of the results.
- Click the Windows Sandbox app to open it. If you are asked for permission, click Yes.
- Wait for a new window to open with a clean Windows desktop. It has no files or apps from your main PC.
- Copy files or installers from your main PC and paste them into the Sandbox window, then run them there. Copy and paste works between the two desktops. Dragging files in works for many people, too.
- Close the Sandbox window when you are finished and confirm the warning. Everything inside it is deleted automatically, and the next launch starts clean.

That’s it. You now have a throwaway Windows desktop for testing software, and it resets every time you close it.
Save or copy out anything you want to keep before you close the window. Nothing in Sandbox can be recovered afterwards.
Summary
Sandbox is now ready whenever you need a clean desktop for a risky file or installer. A few things to keep in mind from here:
- To undo the change, clear the Windows Sandbox box in Windows Features or run the disable command, then restart.
- If Sandbox is missing after a restart, check your Windows edition and the virtualization setting in BIOS/UEFI.
- Try a .wsb configuration file next if you want to turn off networking or share a folder before testing.
- Sandbox keeps nothing between sessions, so copy out anything you need before you close the window.
- For Microsoft’s own reference on Windows Sandbox, see the official Microsoft guide.
Have a question about this guide?
Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.
Did this guide fix your problem?
About the Author
Richard
Tech Writer, IT Professional
Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.
No comments yet — be the first to share your thoughts!