Skip to content
Follow
Windows

How to Turn On Windows Sandbox in Windows 11

Richard
Written by
Richard
Jan 27, 2026 Updated Sep 15, 2026 4 min read
How to Turn On Windows Sandbox in Windows 11
How to Turn On Windows Sandbox in Windows 11

Windows Sandbox is a built-in desktop environment on Windows 11 Pro, Enterprise, or Education that lets you run untrusted apps safely without harming your main PC. Every time you close the sandbox, it wipes away all files and changes permanently.

Advertisement

You need a PC with at least 4GB of RAM and hardware virtualization turned on in your BIOS before you start. The tool is lightweight and does not require a separate virtual machine disk setup.

⚡ Quick Answer

Open Windows Features by typing optionalfeatures.exe in the Run box. Check the box next to Windows Sandbox and click OK to install it . A restart may be required.

Advertisement

What is Windows Sandbox?

Windows Sandbox is a built-in feature in Windows 11 that gives you a safe, temporary desktop to run untrusted apps or files. Because it is completely isolated from your main operating system, anything you do inside the sandbox stays there and disappears the moment you close the window.

Why use it? This is great if you want to test apps you don’t fully trust or just want to keep things safe.

⚠️WarningWhat happens when done?

What happens when done? All files and changes disappear automatically when you close it.

How to Turn On Windows Sandbox

Method 1Using Apps & Features

  1. Press Win+R on your keyboard. This opens the Run box.
  2. Type optionalfeatures.exe and press Enter.
  3. The Windows Features window will open. Scroll down and find Windows Sandbox.
  4. Check the box next to Windows Sandbox and click OK.
  5. Windows will install the feature. You might need to restart your computer.
Run box with optionalfeatures.exe typed
windows 11 run comamand box app and features

You can turn on Windows Sandbox in Windows 11 using the built-in Windows Features menu without installing any extra software. This method involves opening the optional features list, checking the box for the sandbox tool, and letting Windows install the necessary files for you.

Advertisement
Windows Features with Windows Sandbox selected
Windows Features with Windows Sandbox selected

You can turn on Windows Sandbox in Windows 11 using the built-in Windows Features menu without installing any extra software. This method involves opening the optional features list, checking the box for the sandbox tool, and letting Windows install the necessary files for you.

Method 2Using Command Prompt

You can enable Windows Sandbox in Windows 11 using the Command Prompt by running a short text command with administrator rights. This method is a fast alternative to the graphical menus if you prefer typing commands to install built-in system features.

  1. Click the Start button, type Command Prompt.
  2. [Admin Required] Right-click on Command Prompt and choose Run as administrator.
  3. In the Command Prompt window, type this and press Enter: dism /online /Enable-Feature /FeatureName:"Containers-DisposableClientVM" -All
  4. After it finishes, restart your computer.
Command Prompt running as administrator
windows 11 command prompt administrator

Method 3Using PowerShell

You can also use PowerShell, another tool for running commands:

Advertisement
  1. Click the Start button, type PowerShell.
  2. [Admin Required] Right-click on Windows PowerShell and choose Run as administrator.
  3. Type this command and press Enter: Enable-WindowsOptionalFeature -Online -FeatureName "Containers-DisposableClientVM" -All
  4. Restart your computer when done.
PowerShell running as administrator
windows 11 powershell run as administrator

How to Turn Off Windows Sandbox

⚠️WarningTo turn off Windows Sandbox, administrators run specific commands.

These commands stop the virtual computer environment that Windows Sandbox creates for testing apps. After running these commands, the Windows Sandbox virtual environment will stop working.

Command Prompt: dism /online /Disable-Feature /FeatureName:"Containers-DisposableClientVM"

PowerShell: Disable-WindowsOptionalFeature -Online -FeatureName "Containers-DisposableClientVM" -Online

Advertisement

How to Use Windows Sandbox

You can open and use Windows Sandbox in Windows 11 by searching for the app in your Start menu once it is turned on. The app opens a separate desktop window where you can drag and drop files, test installers, and browse the web safely.

  1. Click the Start button and type Windows Sandbox.
  2. Click on the Windows Sandbox app to open it.
  3. A new window will open with a clean Windows desktop.
  4. You can copy files or apps into this window and run them safely.
  5. When you close Sandbox, everything inside it will be deleted automatically.
Windows Sandbox running on Windows 11
windows 11 sandbox use

Summary

Windows Sandbox in Windows 11 gives you a secure, temporary workspace to test new software without risking your main computer. You can turn it on using either the Windows Features menu or the Command Prompt, and it wipes all data clean every time you close it.
  • Windows Sandbox is a safe way to try apps without risking your main computer.
  • You can turn it on using Apps & Features, Command Prompt, or PowerShell.
  • Don't forget to restart your PC after turning it on or off.
  • Use Sandbox to keep your computer safe from harmful software.
  • If you want to learn more about Windows Sandbox, you can visit the official Microsoft guide.

How to get Windows sandbox free?

Features when you open optional. Features you'll see a huge list of features that can be enabled in Windows. And if we scroll down you'll see Windows Sandbox. I already have this enabled.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

Advertisement

📚 Related Tutorials

How to Enable Networking in Windows 11 Sandbox
Windows How to Enable Networking in Windows 11 Sandbox
How to Enable or Disable Sharing Host Folders with Windows Sandbox in Windows 11
Windows How to Enable or Disable Sharing Host Folders with Windows Sandbox in Windows 11
How to Share Host Folders with Windows Sandbox in Windows 11
Windows How to Share Host Folders with Windows Sandbox in Windows 11
How to Disable Command Prompt in Windows 11
Windows How to Disable Command Prompt in Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *