Skip to content

Use and configure Windows Sandbox (.wsb files) — by Microsoft Learn

intermediatepageLink only (©)Windows 10 build 18342+ and Windows 11 (environment variables in paths from 11 23H2)

Documents the XML .wsb configuration file: vGPU, networking, mapped folders, logon command, audio and video input, clipboard, printer redirection and memory. Warns that networking is on by default and that read/write mapped folders can be damaged by whatever you run in the sandbox, so use read-only mapping and disable networking for untrusted files.

Quick steps

  1. Create a text file containing <Configuration></Configuration> and save it with a .wsb extension
  2. Add options such as <Networking>Disable</Networking>
  3. Map a host folder with <MappedFolder><HostFolder>...</HostFolder><SandboxFolder>...</SandboxFolder><ReadOnly>true</ReadOnly></MappedFolder>
  4. Run something on start with <LogonCommand><Command>...</Command></LogonCommand>; double-click the file to launch

Paraphrased from the source. Menus can differ by version, so check the original for full details.

Read the full article on learn.microsoft.com

Source: Use and configure Windows Sandbox (.wsb files) by Microsoft Learn. Licence: Link only (©).

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

windows sandboxwsbmapped folderslogon command

More in Sandbox & Virtualization