Disable Networking in Windows Sandbox

When you close the Sandbox, all the applications with all its files and state are permanently deleted. Networking in Windows Sandbox allows users to enable or disable network access within the sandbox. Disabling network access can be used to decrease the attack surface exposed by the Sandbox. To disable it using the Registry: Open the Registry Editor in Windows 10. For this, press Win+R in combination to open the ‘Run’ dialog box. In the empty field of the box, type ‘regedit’ and press ‘Enter’. When the Registry Editor opens, navigate to the following path address –

Now, create a new 32-bit DWORD value ‘AllowNetworking’. It doesn’t matter whether you are running 32-bit or 64-bit Windows, you still need to use a 32-bit DWORD as the value type.

Now, to disable the Networking in Windows 10 Sandbox environment set the value for the above key to ‘0’. To enable the Networking feature in Windows 10 Sandbox, delete the entire key or set its value to 1.

Using Group Policy

Alternatively, you can use Group Policy editor to disable Networking in Windows Sandbox. Simply go to the setting below in the left pane of the Local Group Policy Editor. Then, switch to the right pane of Windows Sandbox in Local Group Policy Editor and double click Allow networking in Windows Sandbox policy and set it to Disabled. Save and exit. If you enable the policy, 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 the policy setting, networking is disabled in Windows Sandbox, That’s all there to it! Also read:

How to enable or disable Clipboard Sharing with Windows SandboxHow to enable or disable Virtualized GPU sharing Sharing for Windows SandboxHow to enable or disable Video Input in Windows Sandbox.