Skip to content

Windows Sandbox

ApplicationMicrosoft Corporation

Also called windows sandbox, wsb, containers disposable client vm

Windows optional featureDisposable virtual machine

Windows Sandbox is a disposable virtual Windows desktop for testing. Closing it discards its state, but network, clipboard and folder sharing determine its exposure.

What you need to know

To disable Windows Sandbox, turn off the Containers-DisposableClientVM optional feature after saving work. To test software, first review what the sandbox can share with the host.

Closing the window deletes sandbox state. Network access and clipboard sharing are enabled in the documented default configuration; isolation does not mean no connectivity.

Does Windows Home include it?
Microsoft documents it for supported Pro, Enterprise and Education editions.
Does closing it keep my files?
No. Closing discards sandbox-only files and application state.
Is networking off by default?
No. Use a configuration file if you need it disabled.

What Windows Sandbox does

Windows Sandbox provides an isolated desktop backed by Microsoft's hypervisor. Applications installed inside it are separate from host-installed applications. Closing the sandbox discards its software, files and state; launching again creates a fresh environment.

A restart initiated inside a running sandbox can preserve state on supported Windows versions. That is different from closing the sandbox window. Do not use a disposable environment as the only storage for work you need to keep.

Requirements and supported editions

These are prerequisites, not a guarantee that every workload will run smoothly. Windows build, firmware settings, host resources and organizational policy can all matter. A missing optional feature does not automatically mean the system is damaged.

Enable and check Windows Sandbox

Open Turn Windows features on or off, select Windows Sandbox and complete any required restart. Save your work first. The following administrative PowerShell commands provide an explicit state check and an alternative enable operation.

Get-WindowsOptionalFeature -Online -FeatureName Containers-DisposableClientVM

Enable-WindowsOptionalFeature -Online -FeatureName Containers-DisposableClientVM -All -NoRestart

The first command reads feature state. The second changes Windows configuration. -NoRestart suppresses an automatic restart; it does not remove a restart requirement. Read the returned result and restart manually when ready.

Disable or uninstall Windows Sandbox

Close the sandbox only after copying out any results you intend to keep. Its own state will be discarded. In an administrative PowerShell window, use the command below to disable the feature without requesting payload removal.

Disable-WindowsOptionalFeature -Online -FeatureName Containers-DisposableClientVM -NoRestart

Read the result for RestartNeeded and restart when your saved work permits. Re-enable with the enable command above if you want the feature back. Do not disable the whole hypervisor or delete Windows executables just to remove Sandbox; other virtualization-based products can depend on them.

Default sharing and its consequences

Microsoft's documented default configuration enables networking, clipboard redirection and audio input, while video and printer input paths have separate defaults. A program with network access can contact other reachable systems. A shared clipboard can expose material you paste.

Folder mappings intentionally cross the boundary. A writable mapping lets software inside the sandbox change host files in that mapped directory. Read-only mappings reduce that particular risk but still expose the files for reading. Share a dedicated test directory, not your profile or documents library.

No result from a sandbox proves that an unknown file is harmless. Software can behave differently in virtual environments or after a delay. Use Sandbox as a testing tool with a defined scope, not as an absolute malware verdict.

Example: offline sandbox with a read-only test folder

Create C:\SandboxInput on the host and place only the files you intend to expose there. Save the XML below as an actual .wsb file, for example OfflineTest.wsb, and open it. The host path must exist; adjust it deliberately if you use a different test directory.

<Configuration> <VGpu>Disable</VGpu> <Networking>Disable</Networking> <ClipboardRedirection>Disable</ClipboardRedirection> <AudioInput>Disable</AudioInput> <VideoInput>Disable</VideoInput> <PrinterRedirection>Disable</PrinterRedirection> <MappedFolders> <MappedFolder> <HostFolder>C:\SandboxInput</HostFolder> <SandboxFolder>C:\TestInput</SandboxFolder> <ReadOnly>true</ReadOnly> </MappedFolder> </MappedFolders> </Configuration>

This example disables networking, clipboard, microphone, camera, printer redirection and vGPU. It exposes only the named test directory as read-only. Disabling vGPU uses software rendering and can make graphics-heavy tasks slower. These choices reduce specific connections; they do not certify the software you run.

Results saved only inside the sandbox disappear when it closes. If you later enable clipboard access or a writable folder to export results, that changes the boundary you configured. Treat exported files according to their own trust and content.

Windows 11 version differences

Microsoft documents a newer Store-delivered Sandbox experience beginning with Windows 11 24H2 and its required updates. It adds runtime controls and changes how the app is updated. Check the actual Windows and Sandbox version before following screenshots from another build.

The install guide also notes that some inbox Store applications are not present inside Sandbox on newer releases. A missing Calculator, Photos, Notepad or Terminal inside that environment does not necessarily mean your host installation is missing the app.

Troubleshoot a missing feature or failed launch

  1. Record Windows edition, build and the exact error before changing configuration. A Home installation requires a different product choice, not an unofficial feature-unlock script.
  2. Confirm firmware virtualization is enabled. If Windows runs inside a VM, ask the host administrator whether nested virtualization is supported and exposed.
  3. Check available host memory and disk space. Close unnecessary workloads and finish pending Windows updates and restart requirements.
  4. Test launching with the default configuration, then with one intended .wsb change at a time. Validate XML and mapped-folder paths.
  5. On a managed machine, check applied policy with the administrator. Policy can constrain networking, mappings and other Sandbox capabilities. Do not work around those restrictions.

Microsoft documents separate policy controls for these features. A policy setting and a per-launch .wsb preference are not interchangeable explanations for a failed launch.

Sandbox, a regular VM and Sandboxie

Use a persistent VM when you need to keep installed tools, snapshots or a long-running test environment. Sandbox is designed for short-lived clean desktops. A host operating system and hardware limits still constrain the experience.

Sandboxie is a separate third-party product. Windows Sandbox instructions, feature names and isolation properties should not be applied to it just because the word sandbox appears in both names.

Validation and research limits

The configuration example is derived from Microsoft's documented XML elements and is checked for well-formed structure. This research did not start a Windows sandbox, test isolation escapes or measure startup time. Commands that enable or disable the feature are clearly separated from read-only inspection.

Sources and verification

Editorial ownership: Feex. No independent review date is recorded. How we research.

Report a correction to Feex

Was this article useful?

A yes or no is enough. Pick a reason if you want, or add a short note.

Was this article useful?