Start Windows Sandbox from the command line

Launch a disposable isolated desktop with WindowsSandbox.exe for testing untrusted files.

WindowssandboxclisecurityLow risk
Run `WindowsSandbox.exe` to start a clean, isolated Windows desktop that disappears completely when closed.

01Command

Command
$ WindowsSandbox.exe

02What it does

Windows Sandbox spins up a temporary copy of Windows where software you run cannot touch your real system — everything is discarded on close. It must first be enabled as a Windows feature (the dism command in the requirements), then it starts in seconds without any virtual-machine setup. It is ideal for opening unknown attachments or trying installers from untrusted sources.

03Risk

RiskLow risk
RequirementsWindows 10/11 Pro, Enterprise or Education; enable the feature first with `dism /online /enable-feature /featurename:Containers-DisposableClientVM`.
!Warning: Files are NOT saved — anything stored inside the sandbox is deleted the moment you close it. Virtualization must be enabled in BIOS/UEFI.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • netsh
    Microsoft Learn · vendor-doc · 2026-09-17
    Evidence: Documents netsh WLAN commands including `netsh wlan show profile name=... key=clear` and `netsh wlan delete profile name=...`.
  • Windows Sandbox
    Microsoft Learn · vendor-doc · 2026-09-17
    Evidence: Windows Sandbox provides a disposable desktop environment started by running WindowsSandbox.exe.

Last verified: 2026-09-18 · Category: Security & Privacy

06Related solutions