How to Enable or Disable Printer Sharing from Host to Sandbox in Windows 11

|

|

The article guides on enabling or disabling printer sharing from a host machine to the Sandbox in Windows 11. Since the Windows Sandbox is an isolated environment, printing directly from it is impossible without sharing the host’s printer. The guide includes steps to enable this sharing feature through either Local Group Policy Editor or Windows…

This article describes the steps to turn on or off printer sharing from the host into the Sandbox in Windows 11.

When you turn on Sandbox in Windows 11, you enable a lightweight, isolated desktop environment to run applications safely. The sandbox environment is completely isolated, remains “sandboxed,” and runs separately from the host machine.

There’s no communication between the host (Windows 11) and the Sandbox environment. Every time Windows Sandbox runs, it’s as clean as a brand-new installation of Windows. When you are done, the desktop environment is discarded.

Since the Windows sandbox environment is isolated, you cannot use a printer installed on the host (Windows 11). Therefore, if you need to print from the sandbox environment, you must share the host printer with the Sandbox.

Below is how to do that in Windows 11.

How to turn on or off printer sharing with Sandbox in Windows 11

As described above, when you turn on Sandbox in Windows 11, you enable a lightweight, isolated desktop environment to run applications safely.

Below, the Sandbox is isolated; you can’t print from it. If you want to print, you must enable printer sharing between the host and sandboxed environment.

Below is how to do that.

First, open Local Group Policy Editor by clicking the Start Menu and searching for Edit group policy, as highlighted below.

Under Best match, select Edit group policy to launch Local Group Policy Editor.

In the left pane of Local Group Policy Editor, expand the tree: 

Computer Configuration > Administrative Templates > Windows Components > Windows Sandbox

Then, in the Windows Sandbox details pane on the right, locate and double-click the setting “Allow printer sharing with Windows Sandbox.”

On the Allow printer sharing with Windows Sandbox window, set the option to Not ConfigureEnabled, or Disabled.

  • Not Configured (default)
  • Enabled  – host printers will be shared into Windows Sandbox.
  • Disabled – Sandbox will not view printers from the host.

Enable or disable printer sharing with Sandbox via Windows Registry

If you can’t open the Local Group Policy Editor, use the Windows Registry instead.

Open the Windows Registry, and navigate to the folder key path below.

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Sandbox

If you don’t see the Sandbox folder key, right-click on the Windows key, then create a subfolder key called Sandbox.

Right-click the Sandbox folder key’s right pane and select New -> DWORD (32-bit) Value. Next, type a new key named AllowPrinterRedirection.

Double-click the new key and enter the Value data as 1 to enable sharing between the host and the sandbox environment.

A 0 value data or simply deleting the key will disable sharing between the host and sandbox environment.

That should do it!

Reference:

https://learn.microsoft.com/en-us/windows/security/threat-protection/windows-sandbox/windows-sandbox-overview

Conclusion:

This post showed you how to enable printer sharing between the host and sandbox environment in Windows 11. Please use the comment form below if you find any errors above or have something to add.

Like this:



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.