Enable or Disable Windows Sandbox in Windows 10  

Page 1 of 9 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: Virtualization
    29 Sep 2021
    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 provides a lightweight desktop environment to safely run applications in isolation. Software installed inside the Windows Sandbox environment remains "sandboxed" and runs separately from the host machine.

    A sandbox is temporary. When it's closed, all the software and files and the state are deleted. You get a brand-new instance of the sandbox every time you open the application.

    Software and applications installed on the host aren't directly available in the sandbox. If you need specific applications available inside the Windows Sandbox environment, they must be explicitly installed within the environment.

    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.

    When Windows Sandbox is enabled a read-only 8 GB PortableBaseLayer system partition without a drive letter is automatically created and should not be deleted. The PortableBaseLayer partition is automatically removed when Windows Sandbox is disabled.

    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 build 18305 or higher
    • 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)

    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.

    Starting with Windows 10 build 18936, running Windows Sandbox no longer requires Administrator privilege.

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

    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
    Enable or Disable Windows Sandbox in Windows 10-windows_sandbox.jpg








    OPTION ONE

    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.

    Enable or Disable Windows Sandbox in Windows 10-virtualization_in_bios.jpg Enable or Disable Windows Sandbox in Windows 10-see_if_virtualization_is_enabled_in_task_manager.png

    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.

    Enable or Disable Windows Sandbox in Windows 10-windows_sandbox-1.jpg

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

    Enable or Disable Windows Sandbox in Windows 10-windows_sandbox-2.png

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

    Enable or Disable Windows Sandbox in Windows 10-windows_sandbox-3.png






    OPTION TWO

    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.


    Enable or Disable Windows Sandbox in Windows 10-virtualization_in_bios.jpg Enable or Disable Windows Sandbox in Windows 10-see_if_virtualization_is_enabled_in_task_manager.png

    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.

    Enable or Disable Windows Sandbox in Windows 10-enable_windows_sandbox_in_powershell.jpg
    Enable or Disable Windows Sandbox in Windows 10-disable_windows_sandbox_in_powershell.jpg






    OPTION THREE

    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.


    Enable or Disable Windows Sandbox in Windows 10-virtualization_in_bios.jpg Enable or Disable Windows Sandbox in Windows 10-see_if_virtualization_is_enabled_in_task_manager.png

    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.

    Enable or Disable Windows Sandbox in Windows 10-enable_windows_sandbox_in_command_prompt.jpg
    Enable or Disable Windows Sandbox in Windows 10-disable_windows_sandbox_in_command_prompt.jpg


    That's it,
    Shawn






  1. Posts : 4,666
    Windows 10 Pro x64 21H1 Build 19043.1151 (Branch: Release Preview)
       #1

    Thanks! All enabling methods covered! Great job!
      My Computers


  2. Posts : 17,661
    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 Computer


  3. Posts : 68,881
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #3

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


  4. Posts : 30,591
    Windows 10 (Pro and Insider Pro)
       #4

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


  5. Posts : 56,825
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #5

    Runs fine here.

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


  6. Posts : 30,591
    Windows 10 (Pro and Insider Pro)
       #6

    f14tomcat said:
    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 Computers


  7. Posts : 5,048
    Windows 10/11 Pro x64, Various Linux Builds, Networking, Storage, Cybersecurity 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 Computer


  8. Posts : 56,825
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #8

    Compumind said:
    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 Computers


  9. Posts : 5,048
    Windows 10/11 Pro x64, Various Linux Builds, Networking, Storage, Cybersecurity Specialty.
       #9

    f14tomcat said:
    With 19H1....April? May?
    That long, huh?
      My Computer


 

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 Discussions
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 07:09.
Find Us




Windows 10 Forums