Enable or Disable Windows Sandbox in Windows 10  

Page 1 of 7 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
    24 May 2019
    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

    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:

    Starting with Windows 10 build 18342:
    • Microsoft fixed an issue where Windows Sandbox would not start on localized builds.
    • Microsoft have done some work to improve error reporting in Windows Sandbox. Now the error dialog includes the error code and a link to the Feedback Hub.
    • Microsoft fixed an issue where Windows Sandbox was unexpectedly throwing an error due to referencing a deleted file under Windows.old.
    • Windows Sandbox now captures hotkeys in full screen.
    • Windows Sandbox now supports configuration files! These files allow users to configure some aspects of the sandbox, such as vGPU, networking and shared folders. A blog post to explain this new feature will be available here.

    Starting with Windows 10 build 18353:
    • Microsoft enabled microphone in Windows Sandbox, which among other things with improve several accessibility scenarios.
    • Microsoft added functionality to configure the audio input device via the Windows Sandbox config file.
    • Microsoft fixed an issue in which the Windows Sandbox time zone was not synchronized with the host.
    • Microsoft enabled the Shift + Alt + PrintScreen key sequence in Windows Sandbox which activates the ease of access dialog for enabling high contrast mode.
    • Microsoft enabled the ctrl + alt + break key sequence in Windows Sandbox which allows entering/exiting fullscreen mode.

    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: 14815
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: 14717
Size:  114.0 KB Name:  See_if_Virtualization_is_enabled_in_Task_Manager.png
Views: 14642
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: 14914
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: 14829
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: 14821
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: 14717
Size:  114.0 KB Name:  See_if_Virtualization_is_enabled_in_Task_Manager.png
Views: 14642
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: 14839
Size:  30.4 KB
    Name:  disable_Windows_Sandbox_in_Powershell.jpg
Views: 14815
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: 14717
Size:  114.0 KB Name:  See_if_Virtualization_is_enabled_in_Task_Manager.png
Views: 14642
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: 14849
Size:  52.5 KB
    Name:  disable_Windows_Sandbox_in_command_prompt.jpg
Views: 14841
Size:  52.3 KB


    That's it,
    Shawn


  1. slicendice's Avatar
    Posts : 4,220
    Windows 10 Pro x64 v1903 Build 18362.207 (Branch: Release Preview)
       #1

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

  2. Kari's Avatar
    Posts : 16,054
    Windows 10 Pro
       #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 : 39,969
    64-bit Windows 10 Pro build 18922
    Thread Starter
       #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 : 17,416
    Windows 10 (Pro and Insider Pro)
       #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 : 41,783
    Triple boot - Win 10 Pro, Win 10 Pro Insider (2) - (and a sprinkling of VMs)
       #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 : 17,416
    Windows 10 (Pro and Insider Pro)
       #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 : 973
    Windows 10 Pro x64, Various Linux Builds, Internet Security Specialty.
       #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 : 41,783
    Triple boot - Win 10 Pro, Win 10 Pro Insider (2) - (and a sprinkling of VMs)
       #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 : 973
    Windows 10 Pro x64, Various Linux Builds, Internet Security Specialty.
       #9

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


 
Page 1 of 7 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 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 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 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...
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 03:19.
Find Us