Enable or Disable Windows Sandbox in Windows 10  

Page 1 of 3 123 LastLast
    Enable or Disable Windows Sandbox in Windows 10

    Enable or Disable Windows Sandbox in Windows 10

    How to Enable or Disable Windows Sandbox in Windows 10
    Published by Category: Apps & Features
    26 Dec 2018
    Designer Media Ltd


    How to Enable or Disable Windows Sandbox in Windows 10


    Starting with Windows 10 build 18305, Microsoft introduced Windows Sandbox.

    Windows Sandbox is a new lightweight desktop environment tailored for safely running applications in isolation.

    How many times have you downloaded an executable file, but were afraid to run it? Have you ever been in a situation which required a clean installation of Windows, but didn’t want to set up a virtual machine?

    At Microsoft, they regularly encounter these situations, so they developed Windows Sandbox: an isolated desktop environment where you can run untrusted software without the fear of lasting impact to your device. Any software installed in Windows Sandbox stays only in the sandbox and cannot affect your host. Once Windows Sandbox is closed, all the software with all of its files and state are permanently deleted.

    Windows Sandbox has the following properties:
    • Part of Windows – everything required for this feature ships with Windows 10 Pro and Enterprise. No need to download a VHD!
    • Pristine – every time Windows Sandbox runs, it’s as clean as a brand-new installation of Windows
    • Disposable – nothing persists on the device; everything is discarded after you close the application
    • Secure – uses hardware-based virtualization for kernel isolation, which relies on the Microsoft Hypervisor to run a separate kernel which isolates Windows Sandbox from the host
    • Efficient – uses integrated kernel scheduler, smart memory management, and virtual GPU

    Prerequisites for using the feature
    • Windows 10 Pro or Enterprise Insider build 18305 or later
    • AMD64 architecture (64-bit)
    • Virtualization capabilities enabled in BIOS
    • At least 4GB of RAM (8GB recommended)
    • At least 1 GB of free disk space (SSD recommended)
    • At least 2 CPU cores (4 cores with hyperthreading recommended)

    Known issues
    • When Windows Sandbox is first installed and on every servicing event a setup process will run and trigger significant CPU and disk activity for a minute or so.
    • Opening the Start menu in Windows Sandbox takes some time and some Start Menu apps will not run.
    • The time zone is not synchronized between Windows Sandbox and the host.
    • Windows Sandbox does not support installers which require reboot.
    • The Microsoft Store is not supported in Windows Sandbox.
    • Windows Sandbox does not support high dpi displays very well.
    • Windows Sandbox does not fully support multi-monitor configurations.

    Using Windows Sandbox
    1. To start Windows Sandbox (if enabled), open the Start menu, enter Windows Sandbox and then select it.
    2. When prompted by UAC, click/tap on Yes.
    3. Copy (Ctrl+C) an executable file from the host.
    4. Paste (Ctrl+V) the executable file in the window of Windows Sandbox (on the Windows desktop).
    5. Run the executable in the Windows Sandbox; if it is an installer go ahead and install it.
    6. Run the application in the Windows Sandbox and use it as you normally do.
    7. When you’re done experimenting, you can simply close the Windows Sandbox application, and click/tap on OK to confirm. All sandbox content will be discarded and permanently deleted.

    See also: Windows Sandbox - Microsoft Tech Community - 301849

    This tutorial will show you how to use and enable or disable the Windows Sandbox feature for all users in Windows 10 Pro or Enterprise.

    You must be signed in as an administrator to enable or disable and use Windows Sandbox.


     CONTENTS:

    • Option One: Enable or Disable Windows Sandbox in Windows Features
    • Option Two: Enable or Disable Windows Sandbox in PowerShell
    • Option Three: Enable or Disable Windows Sandbox in Command Prompt


    EXAMPLE: Windows Sandbox
    Name:  Windows_Sandbox.jpg
Views: 2280
Size:  92.0 KB






    Enable or Disable Windows Sandbox in Windows 10 OPTION ONE Enable or Disable Windows Sandbox in Windows 10
    Enable or Disable Windows Sandbox in Windows Features

    1. If you are enabling Windows Sandbox, you will need to make sure Virtualization is enabled in your UEFI/BIOS settings first. You can confirm if Virtualization is enabled in Task Manager. (see screenshots below)

    You may need to reference your motherboard's or PC's manual for exactly how to enable the Virtualization UEFI/BIOS setting for it.

    Name:  Virtualization_in_BIOS.jpg
Views: 2100
Size:  114.0 KB Name:  See_if_Virtualization_is_enabled_in_Task_Manager.png
Views: 2043
Size:  39.8 KB

    2. Open the Control Panel (icons view), and click/tap on the Programs and Features icon.

    3. Click/tap on the Turn Windows features on or off link on the left side. (see screenshot below)

    This will open the C:\Windows\System32\OptionalFeatures.exe file.

    Name:  Windows_Sandbox-1.jpg
Views: 2287
Size:  64.7 KB

    4. Check (enable) or uncheck (disable - default) Windows Sandbox, and click/tap on OK when finished. (see screenshot below)

    Name:  Windows_Sandbox-2.png
Views: 2278
Size:  31.2 KB

    5. When ready, click/tap on Restart now to restart the computer to apply. (see screenshot below)

    Name:  Windows_Sandbox-3.png
Views: 2272
Size:  20.4 KB






    Enable or Disable Windows Sandbox in Windows 10 OPTION TWO Enable or Disable Windows Sandbox in Windows 10
    Enable or Disable Windows Sandbox in PowerShell

    1. If you are enabling Windows Sandbox, you will need to make sure Virtualization is enabled in your UEFI/BIOS settings first. You can confirm if Virtualization is enabled in Task Manager. (see screenshots below)

    You may need to reference your motherboard's or PC's manual for exactly how to enable the Virtualization UEFI/BIOS setting for it.

    Name:  Virtualization_in_BIOS.jpg
Views: 2100
Size:  114.0 KB Name:  See_if_Virtualization_is_enabled_in_Task_Manager.png
Views: 2043
Size:  39.8 KB

    2. Open an elevated PowerShell.

    3. Copy and paste the command below you want to use into the elevated PowerShell, and press Enter. (see screenshots below)

    (enable Windows Sandbox)
    Enable-WindowsOptionalFeature –FeatureName "Containers-DisposableClientVM" -All -Online

    OR

    (disable Windows Sandbox - default)
    Disable-WindowsOptionalFeature –FeatureName "Containers-DisposableClientVM" -Online

    4. When prompted to restart the computer, type Y, and press Enter when ready to do so.

    Name:  enable_Windows_Sandbox_in_Powershell.jpg
Views: 2273
Size:  30.4 KB
    Name:  disable_Windows_Sandbox_in_Powershell.jpg
Views: 2274
Size:  32.3 KB






    Enable or Disable Windows Sandbox in Windows 10 OPTION THREE Enable or Disable Windows Sandbox in Windows 10
    Enable or Disable Windows Sandbox in Command Prompt

    1. If you are enabling Windows Sandbox, you will need to make sure Virtualization is enabled in your UEFI/BIOS settings first. You can confirm if Virtualization is enabled in Task Manager. (see screenshots below)

    You may need to reference your motherboard's or PC's manual for exactly how to enable the Virtualization UEFI/BIOS setting for it.

    Name:  Virtualization_in_BIOS.jpg
Views: 2100
Size:  114.0 KB Name:  See_if_Virtualization_is_enabled_in_Task_Manager.png
Views: 2043
Size:  39.8 KB

    2. Open an elevated Command Prompt.

    3. Copy and paste the command below you want to use into the elevated command prompt, and press Enter. (see screenshots below)

    (enable Windows Sandbox)
    Dism /online /Enable-Feature /FeatureName:"Containers-DisposableClientVM" -All

    OR

    (disable Windows Sandbox - default)
    Dism /online /Disable-Feature /FeatureName:"Containers-DisposableClientVM"

    4. When prompted to restart the computer, type Y when ready to do so.

    Name:  enable_Windows_Sandbox_in_command_prompt.jpg
Views: 2276
Size:  52.5 KB
    Name:  disable_Windows_Sandbox_in_command_prompt.jpg
Views: 2282
Size:  52.3 KB


    That's it,
    Shawn


  1. slicendice's Avatar
    Posts : 3,805
    Windows 10 Pro x64 v1809 Build 17763.288 (Branch: RS5 Release Preview)
       4 Weeks Ago #1

    Thanks! All enabling methods covered! Great job!
      My ComputersSystem Spec

  2. Kari's Avatar
    Posts : 15,373
    Windows 10 Pro
       4 Weeks Ago #2

    Sandbox won't run on my machine. Enabled, shown in Start, when clicked in Start UAC prompt shown. I click Yes, nothing happens.
      My ComputerSystem Spec

  3. Brink's Avatar
    Posts : 35,296
    64-bit Windows 10 Pro build 18317
    Thread Starter
       4 Weeks Ago #3

    For me, the Windows Sandbox will start to load its startup screen, and then it closes with nothing running.
      My ComputersSystem Spec

  4. AndreTen's Avatar
    Posts : 16,004
    Windows 10 (Pro and Insider Pro)
       4 Weeks Ago #4

    Kari said: View Post
    Sandbox won't run on my machine. Enabled, shown in Start, when clicked in Start UAC prompt shown. I click Yes, nothing happens.
      My ComputersSystem Spec

  5. f14tomcat's Avatar
    Posts : 38,784
    Triple boot - Win 10 Pro, Win 10 Pro Insider (2) - (and a sprinkling of VMs)
       4 Weeks Ago #5

    Runs fine here.

    Maybe a conflict with Hyper-V, if it's enabled. Not enabled here.
      My ComputersSystem Spec

  6. AndreTen's Avatar
    Posts : 16,004
    Windows 10 (Pro and Insider Pro)
       4 Weeks Ago #6

    f14tomcat said: View Post
    Runs fine here.

    Maybe a conflict with Hyper-V, if it's enabled. Not enabled here.
    Wasn't enabled, same. Enabled it, same... Maybe AMD (older) processor? AMD has its own virtualization.
      My ComputersSystem Spec

  7. Compumind's Avatar
    Posts : 482
    Windows 7 Pro, 10 Pro, Various Linux Builds, Internet Security
       4 Weeks Ago #7

    This is very cool.

    I've read about this coming and am curious to know as to when it will be pushed via WU for general release.

    I'll be sure to image first!

    Thoughts?



    P.S. Nice tutorial, Shawn. Thanks.
      My ComputerSystem Spec

  8. f14tomcat's Avatar
    Posts : 38,784
    Triple boot - Win 10 Pro, Win 10 Pro Insider (2) - (and a sprinkling of VMs)
       4 Weeks Ago #8

    Compumind said: View Post
    This is very cool.

    I've read about this coming and am curious to know as to when it will be pushed via WU for general release.

    I'll be sure to image first!

    Thoughts?

    With 19H1....April? May?
      My ComputersSystem Spec

  9. Compumind's Avatar
    Posts : 482
    Windows 7 Pro, 10 Pro, Various Linux Builds, Internet Security
       4 Weeks Ago #9

    f14tomcat said: View Post
    With 19H1....April? May?
    That long, huh?
      My ComputerSystem Spec


 
Page 1 of 3 123 LastLast

Tutorial Categories

Enable or Disable Windows Sandbox in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


Related Threads
How to Enable or Disable Automatic Updates for Windows Update in Windows 10 Windows 10 will automatically check for new Windows Updates at the time you have set in automatic maintenance. Windows 10 will automatically download and install...
How to Enable or Disable Including Driver Updates in Windows Update in Windows 10 By default, Windows 10 will automatically download and install drivers in Windows Update when they are available. Starting with Windows 10 build 14328, there's...
How to Enable or Disable to Format with ReFS File System in Windows 8.1 and Windows 10 Resilient File System (ReFS) is a new local file system supported by Windows 8.1 and Windows 10. It maximizes data availability, despite errors that would...
Windows Defender helps protect your PC against malware (malicious software) like viruses, spyware, and other potentially unwanted software. Malware can infect your PC without your knowledge: it might install itself from an email message, when you...
How to Enable or Disable Windows Game Recording and Broadcasting in Windows 10 The Game DVR is a feature of the Xbox app that lets you use the Game bar (Win+G) to record and share game clips and screenshots in Windows 10. However, you can also...

Tags for this Thread

Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:46.
Find Us