Windows Sandbox: How to verify effective .wsb settings, mapped folders and read-only permissions?

Krisztián 0 Reputation points
2026-11-12T14:49:30.7033333+00:00

Hello,

I am looking for an officially documented, read-only method to verify the effective configuration of a specific Windows Sandbox session launched using a .wsb configuration file.

I am using the Microsoft Store version of Windows Sandbox (client version 0.8.114.0).

My goal is to establish verifiable evidence that the intended isolation settings and mapped-folder restrictions are actually applied to a particular running session, taking into account any relevant Group Policy or MDM settings.

I would appreciate clarification on three related questions.

1. Effective isolation settings and policy precedence

Is there an officially supported, read-only method to determine the effective networking, clipboard redirection, and microphone redirection settings of a specific Windows Sandbox session?

How can these effective settings be linked to the .wsb configuration used to launch that session, including any applicable Group Policy or MDM overrides?

2. Complete mapped-folder configuration and write permissions

Is there a supported method to retrieve or verify the complete set of active host-to-guest mapped folders for a specific running Sandbox session, including:

  • Host source paths and guest destination paths

Whether each mapping is read-only or writable from the guest

Whether any additional mappings are active beyond those explicitly defined in the .wsb file

I am particularly interested in verifying that only two intended input directories are mapped, both are read-only from the guest, and no additional host directories are exposed.

3. AllowWriteToMappedFolders policy

What is the correct and authoritative GPO, ADMX, CSP, or registry mapping for the AllowWriteToMappedFolders policy?

How does this policy interact with the ReadOnly attribute of a .wsb MappedFolder configuration?

The Microsoft Policy CSP documentation appears to contain potentially ambiguous references to folder-mapping policies in this section. Could you clarify the authoritative mapping and precedence?

Requested documentation and evidence

I do not necessarily need a single command or GUI screen covering everything. A documented verification chain connecting the configuration file, applicable policies, session launch, and effective runtime state would also be useful.

Ideally, the answer would identify:

Supported Windows and Sandbox client versions

Exact read-only commands, APIs, UI locations, or other supported evidence sources

Required permissions and whether administrator access is necessary

Whether the evidence is complete or partial

Whether it reflects a specific point in time or continuously enforced settings

Any important limitations on what can actually be verified

I would prefer not to use test writes to mapped folders, network probes, policy modifications, custom diagnostic programs, or full system-wide diagnostic exports.

If some of these settings cannot be reliably verified using supported read-only methods, an explicit clarification of those limitations would also be very helpful.

Thank you for your assistance.

Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
0 comments No comments

3 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Jason Nguyen Tran 30,265 Reputation points Independent Advisor
    2026-11-12T15:41:28.7666667+00:00

    Hi Krisztián,

    Based on the current Windows Sandbox implementation, there is unfortunately no single supported, read-only command or API that exposes the complete effective runtime configuration of a running Sandbox session, including the merged result of the .wsb file, Group Policy, MDM settings, and runtime state. For effective settings such as networking, clipboard redirection, microphone access, and mapped folders, the primary sources of truth remain the .wsb configuration used to launch the session and the applicable Windows Sandbox policies configured through Local Group Policy, domain GPOs, or MDM.

    Regarding mapped folders, Windows Sandbox does not currently provide a documented read-only interface that enumerates all active host-to-guest mappings together with their corresponding read-only or writable status. As a result, while you can verify the intended configuration from the .wsb file and applicable policies, there are limitations in proving the complete runtime state of a specific session without using behavioral validation techniques. Similarly, I am not aware of a supported mechanism that definitively proves that no additional folders are exposed beyond those defined by the configuration.

    For the AllowWriteToMappedFolders setting, I recommend reviewing the applicable Windows Sandbox administrative templates and policy configuration on the host to determine whether a policy override exists. In general, policy settings take precedence over user-controlled configuration, but the exact behavior should be validated against the policy documentation available for the specific Windows version in use. Because you are using the Microsoft Store version of Windows Sandbox, it is also worth confirming that the client version and host OS version are aligned with the currently supported feature set.

    From an auditing perspective, a reasonable verification chain consists of: validating the .wsb file, reviewing the applied GPO/MDM configuration, confirming Windows Sandbox startup behavior, and documenting the observed session state. However, it is important to recognize that there are limitations in what can be independently verified using supported, read-only methods alone.

    I hope the response provided some helpful insight. If you find this answer useful, please hit “accept answer” so I know it addressed your concern.

    Jason

    Was this answer helpful?


  3. AI answer

    2026-11-12T14:55:18.55+00:00

    There is no documented, supported read-only command, API, or UI that returns the complete effective security configuration—including all folder mappings and write modes—for one running Windows Sandbox session; the strongest supported approach is to preserve the .wsb, collect applicable policy results, identify the session, and clearly treat these as configuration evidence rather than runtime attestation.

    1. What can be established

    The .wsb file documents the requested configuration:

    • Networking, ClipboardRedirection, and AudioInput accept Enable, Disable, or Default.
    • Each MappedFolder records HostFolder, optional SandboxFolder, and ReadOnly.
    • <ReadOnly>true</ReadOnly> enforces read-only access from the container; if omitted, it defaults to false.
    • Mapped folders are established before the logon command runs. ^1^

    Preserve and hash the exact file before launch:

    $wsb = 'C:\Sandbox\Evidence.wsb'
    Get-Item $wsb | Select-Object FullName, Length, LastWriteTimeUtc
    Get-FileHash $wsb -Algorithm SHA256
    Get-Content $wsb -Raw
    

    The hash proves the contents of that preserved file. It does not prove that the file created a particular session unless an authoritative launch record links that file or its contents to the session.

    A defensively configured two-folder file would contain explicit values rather than Default:

    <Configuration>
      <Networking>Disable</Networking>
      <ClipboardRedirection>Disable</ClipboardRedirection>
      <AudioInput>Disable</AudioInput>
      <MappedFolders>
        <MappedFolder>
          <HostFolder>C:\Input1</HostFolder>
          <SandboxFolder>C:\Input1</SandboxFolder>
          <ReadOnly>true</ReadOnly>
        </MappedFolder>
        <MappedFolder>
          <HostFolder>C:\Input2</HostFolder>
          <SandboxFolder>C:\Input2</SandboxFolder>
          <ReadOnly>true</ReadOnly>
        </MappedFolder>
      </MappedFolders>
    </Configuration>
    

    2. Policy evidence and precedence

    For Group Policy, generate Resultant Set of Policy evidence from an elevated command prompt:

    gpresult /scope computer /h C:\Temp\Sandbox-GP.html
    

    gpresult reports the resulting Group Policy settings enforced on the computer, including overlapping policy resolution. ^2^

    Inspect the report for Computer Configuration → Windows Components → Windows Sandbox, particularly:

    • Allow networking in Windows Sandbox
    • Allow clipboard sharing with Windows Sandbox
    • Allow audio input in Windows Sandbox
    • Allow mapping folders into Windows Sandbox

    These policies are device-scoped. Networking, clipboard, and audio-input policy changes require restarting Windows Sandbox; therefore, policy captured after launch is not necessarily proof of that session’s launch-time state. ^3^

    If the device is MDM-managed, the supported UI evidence is:

    Settings → Accounts → Access work or school → select the account → Info → Create report

    The resulting MDMDiagHtmlReport.html is a snapshot of MDM configurations and policies. It proves reported device-management state, not the effective configuration of a particular Sandbox session. ^4^

    If MDMWinsOverGP is configured as 1, Policy CSP settings with equivalent Group Policy settings cause the corresponding GP setting to be blocked. The diagnostic report identifies blocked GP settings. Without that mechanism, configuring the same setting through both channels can create a race with no guaranteed winner. ^5^

    A launch can also report “The following settings are enforced by your IT administrator” when a .wsb setting conflicts with Group Policy. That message demonstrates policy enforcement, but it is not a complete effective-state report. ^6^

    3. Session identification and runtime limitations

    On the Store version, confirm the package and CLI versions:

    Get-AppxPackage -Name WindowsSandbox | Select-Object Name, Version
    wsb --version
    wsb list
    

    wsb list provides each current user’s Sandbox ID, status, and uptime. It does not return the effective .wsb, policy decisions, mappings, or permissions. A Sandbox started through wsb start returns an ID, which provides stronger launch correlation:

    wsb start --config "<Configuration><Networking>Disable</Networking></Configuration>"
    wsb list
    

    Even that ID is only corroborating evidence: the documented CLI does not attest that the requested configuration became the complete effective runtime configuration. ^7^

    The Store version also permits clipboard, audio/video, and folder-sharing changes during runtime through the … menu. Consequently, the original .wsb alone cannot establish the session’s later state. The newer Store version requires Windows 11 24H2 with the documented update prerequisites. ^8^

    There is no documented supported enumeration that proves:

    • Every active host source and guest destination.
    • Every mapping’s effective write mode.
    • That no runtime-added mapping exists.
    • The current effective networking, clipboard, or microphone state.
    • An immutable link between a .wsb file and an already-running session.

    4. AllowWriteToMappedFolders documentation issue

    The authoritative CSP URI is documented as:

    ./Device/Vendor/MSFT/Policy/Config/WindowsSandbox/AllowWriteToMappedFolders
    

    It is device-scoped, uses integer values 0 = not allowed and 1 = allowed/default, depends on AllowMappedFolders=1, and applies to Windows 11 24H2 build 26100 or later. ^3^

    Its interaction with .wsb is restrictive:

    • ReadOnly=true requests and enforces read-only access for that mapping.
    • When mapped folders are allowed but writing is disabled by policy, Sandbox receives read-only access regardless of a writable mapping request.
    • Disabling AllowMappedFolders prevents mappings entirely.

    However, the current AllowWriteToMappedFolders section duplicates the AllowMappedFolders Group Policy mapping—name, friendly name, and registry value—and therefore does not provide an unambiguous public registry value for the write-specific policy. Do not treat the displayed AllowMappedFolders registry value as authoritative evidence for AllowWriteToMappedFolders.

    Submit documentation feedback from the Feedback control on the Policy CSP page, identifying the duplicated mapping. For a binding production answer, open a Microsoft Support case and include:

    • winver screenshot or OS build details;
    • Sandbox package and wsb --version output;
    • the installed WindowsSandbox.admx version;
    • preserved .wsb and SHA-256 hash;
    • gpresult output;
    • the relevant MDM policy report sections;
    • Sandbox ID, launch time, and exact launch command.

    That escalation is necessary if evidence must constitute Microsoft-supported attestation rather than a documented chain of configuration intent and policy state.


    References

    1. Use and configure Windows Sandbox
    2. gpresult
    3. Policy CSP - WindowsSandbox
    4. Collect MDM logs
    5. Policy CSP - ControlPolicyConflict
    6. Troubleshoot Windows Sandbox
    7. Windows Sandbox command line | Microsoft Learn
    8. Windows Sandbox versions
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.