Policy
Allow networking in Windows Sandbox
Windows 11 25H2
Policy overview
Key metadata and intent for this policy.
Supported OS tags: Windows11
This policy setting enables or disables networking in the sandbox. You can disable network access to decrease the attack surface exposed by the sandbox. If you enable this policy setting, networking is done by creating a virtual switch on the host, and connects the Windows Sandbox to it via a virtual NIC. If you disable this policy setting, networking is disabled in Windows Sandbox. If you do not configure this policy setting, networking will be enabled. Note that enabling networking can expose untrusted applications to the internal network.
Registry values
How enabled and disabled states update the registry.
| Registry location | Type | Enabled value | Disabled value |
|---|---|---|---|
| HKLM\SOFTWARE\Policies\Microsoft\Windows\Sandbox\AllowNetworking | REG_DWORD | 1 | 0 |
Policy elements
Inputs and configuration options exposed by this policy.
This policy has no additional user input fields.
Other policies in this category
Explore related policies at the same level.
- ComputerAllow audio input in Windows SandboxAt least Windows 11 Pro, Enterprise, or Education with Windows Sandbox
- ComputerAllow clipboard sharing with Windows SandboxAt least Windows 11 Pro, Enterprise, or Education with Windows Sandbox
- ComputerAllow mapping folders into Windows SandboxAt least Windows 11 Pro, Enterprise, or Education with Windows Sandbox
- ComputerAllow printer sharing with Windows SandboxAt least Windows 11 Pro, Enterprise, or Education with Windows Sandbox
- ComputerAllow vGPU sharing for Windows SandboxAt least Windows 11 Pro, Enterprise, or Education with Windows Sandbox
- ComputerAllow video input in Windows SandboxAt least Windows 11 Pro, Enterprise, or Education with Windows Sandbox