Featured - Enable or Disable Windows Sandbox in Windows 11

Windows Sandbox was initially introduced in Windows 10 19H1 and is now included in Windows 11. It is intended to establish a safe environment where running programs may be isolated from the main system without gaining access to files, the Windows registry, or vital portions of the primary Windows system.

What is Windows Sandbox?

Windows Sandbox lets you execute apps or programs in a different environment. When you close Sandbox, all applications and data are erased, and Windows 11 is unaffected. It is a great feature that allows you to execute programs in Windows 11 without concern of damaging your machine. That is, apps installed in Windows Sandbox mode remain “sandboxed” and operate independently of the host PC.

Windows Sandbox Properties

  • Everything needed for this capability is included in Windows 11. There is no requirement to obtain a VHD.
  • Every time you turn on Windows Sandbox, it is as fresh as a new installation of Windows.
  • Nothing on the device is permanent, and everything is discarded when the user exits the program.
  • For kernel isolation, it uses hardware-based virtualization. It uses the Microsoft hypervisor to run a separate kernel that separates Windows Sandbox from the host.
  • It takes advantage of the integrated kernel scheduler, innovative memory management, and virtual GPU.

This functionality comes in handy when downloading an executable file or software from a dangerous source and installing it in Windows Sandbox, and it will not harm your computer.

Though the Sandbox itself only takes up 100MB, Microsoft also recommends you have 1GB of hardware space to ensure your main OS will run smoothly in the background. With that said, let’s jump into the first step.

By default, Windows Sandbox is switched off. Here’s how to enable or disable Windows Sandbox on Windows 11.

How to Enable or Disable Windows Sandbox in Windows Features

Using the Windows Features dialogue box, you can easily enable or disable the Windows Sandbox feature on Windows 11. Follow along.

  1. Click on the “Search” icon in the “Task Bar,” type in “optionalfeature.exe,” and select “optionalfeature.exe” from the results

    Windows 11 - Open OptionalFeatures.exe

  2. In the “Windows Features” dialogue box, check or uncheck the “Windows Sandbox” and click “OK”

    Checking “Windows Sandbox” will enable the feature, and unchecking it will disable it. You can turn on or off many windows features from this dialogue box.

    Windows 11 - Open OptionalFeatures.exe - Windows Sandbox - Check or Uncheck

  3. Click on “Restart now” to apply the requested changes

    Windows 11 - Open OptionalFeatures.exe - Windows Sandbox - Check or Uncheck - Restart Now

How to Enable or Disable Windows Sandbox in Elevated PowerShell

You can run the command on PowerShell to enable or disable Windows Sandbox on Windows 11.

  1. Right-click on the “Windows” icon and select “Windows Terminal (Admin)” from the options

    Windows 11 - Open Elevated Windows Terminal

  2. Click on the “Dropdown” icon and select “Windows PowerShell” from the options as shown in the picture

    Windows 11 - Elevated Windows Terminal - Open Windows PowerShell

  3. To enable Windows Sandbox through the “Windows PowerShell,” type in the following command and press “Enter”

    Enable-WindowsOptionalFeature -Online -FeatureName “Containers-DisposableClientVM” -All

    After that, a message will appear on your Windows PowerShell,
    “Do you want to restart the computer to complete this operation now?”
    You must press “Y” and “Enter” to apply the changes.

    Windows 11 - Elevated Windows Terminal - Windows PowerShell - Enter the Cmd to Enable

  4. To disable Windows Sandbox through the “Windows PowerShell,” type in the following command and press “Enter”



Disable-WindowsOptionalFeature -Online -FeatureName “Containers-DisposableClientVM” -Online

After that, a message will appear on your Windows PowerShell,
“Do you want to restart the computer to complete this operation now?”
You must press “Y” and “Enter” to apply the changes.

Windows 11 - Elevated Windows Terminal - Windows PowerShell - Enter the Cmd to Disable

How to Enable or Disable Windows Sandbox in Elevated Command Prompt

You can use the elevated command prompt to enable or disable  Windows Sandbox on Windows 11.

  1. Right-click on the “Windows” icon and select “Windows Terminal (Admin)” from the options

    Windows 11 - Open Elevated Windows Terminal

  2. Click on the “Dropdown” icon and select “Command Prompt” from the options as shown in the picture

    Windows 11 - Elevated Windows Terminal - Open Command Prompt

  3. To enable Windows Sandbox through the “Command Prompt,” type in the following command and press “Enter”

    dism /online /Enable-Feature /FeatureName:”Containers-DisposableClientVM” -All

    After that, a message will appear on your Windows PowerShell,
    “Do you want to restart the computer now?”
    You need to press “Y” and “Enter” to apply the changes.

    Windows 11 - Elevated Windows Terminal - Command Prompt - Enter the Cmd to Enable

To disable Windows Sandbox through the “Command Prompt,” type in the following command and press “Enter”

dism /online /Enable-Feature /FeatureName:”Containers-DisposableClientVM” -All

After that, a message will appear on your Windows PowerShell,
“Do you want to restart the computer now?”
You need to press “Y” and “Enter” to apply the changes.

Windows 11 - Elevated Windows Terminal - Command Prompt - Enter the Cmd to Disable

How to Enable Windows Sandbox in Windows 10

If you are still running Windows 10, you can use Windows Sandbox there in pretty much the same way. Check out our other tutorial for the exact steps on how to enable the Windows Sandbox on Windows 10.

How to enable the Windows 10 Sandbox feature