How to Fix ‘Windows Cannot Connect to the Printer’ (0x0000011b) in Windows 11

Attempting to connect to a shared network printer in an office, home workspace, or corporate department in Windows 11 only to be blocked by the error prompt “Operation failed with error 0x0000011b: Windows cannot connect to the printer” disrupts document workflow. This error emerged globally following Microsoft security updates designed to mitigate the critical PrintNightmare remote code execution vulnerability (CVE-2021-1678). Microsoft updated the Windows Print Spooler service to enforce strict Remote Procedure Call (RPC) authentication levels for network print queue bindings. When a client machine running Windows 11 attempts to connect to a shared printer hosted on another PC that does not negotiate packet-level authentication, the connection is instantly rejected with error code 0x0000011b. This technical guide explains the underlying security changes and details proven methods to restore seamless network printing.

Why Does Error 0x0000011b Occur in Windows 11?

Understanding why Microsoft introduced this RPC enforcement simplifies the remediation process:

  • RPC Packet Privacy Authentication Enforcement: Security patch KB5005565 and subsequent cumulative updates altered the Print Spooler’s default RPC communication from standard authentication to privacy-level encryption (RPC_C_AUTHN_LEVEL_PKT_PRIVACY).
  • Mismatched Security Levels on Host Machine: If the PC physically hosting the shared printer has not configured RPC privacy settings, client computers running newer Windows 11 builds abort the handshake.
  • Stale Network Print Queue Pointers: Corrupted printer driver caches or outdated network sharing profiles stored in the local registry.
  • Print Spooler Service Desynchronisation: Cached print job descriptors in System32\spool\PRINTERS hanging active spooler threads.
  • Firewall or Local Network Profile Restrictions: File and Printer Sharing blocked because the active network is set to “Public” rather than “Private”.

Method 1: Configure RpcAuthnLevelPrivacyEnabled in Windows Registry

The definitive fix for error 0x0000011b involves configuring the RPC authentication level key on the PC hosting the shared printer.

  1. On the host PC (the computer directly connected to the printer via USB or local network):
  2. Press Windows Key + R, type regedit, and press Enter to open the Registry Editor.
  3. Navigate to the following registry path:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print
  4. Right-click on the Print key in the left pane, hover over New, and select DWORD (32-bit) Value.
  5. Name the new value exactly:
    RpcAuthnLevelPrivacyEnabled
  6. Double-click RpcAuthnLevelPrivacyEnabled and ensure its value data is set to 0.
  7. Click OK and close the Registry Editor.
  8. Restart the host computer to apply the new spooler security policy.

Method 2: Restart the Windows Print Spooler Service

Clearing stale spooler memory allows the operating system to re-bind network print descriptors.

  1. Press Windows Key + R, type services.msc, and hit Enter.
  2. Scroll down to locate the Print Spooler service.
  3. Right-click Print Spooler and select Stop.
  4. Open File Explorer and navigate to:
    C:\Windows\System32\spool\PRINTERS
  5. Delete all temporary files located inside this folder (these are leftover spool jobs).
  6. Return to the Services management window, right-click Print Spooler, and click Start.

Method 3: Add the Printer Manually via TCP/IP or Local Port

If automated Windows network discovery continues to fail with error 0x0000011b, mapping the printer directly via a local port bypasses the discovery handshake.

  1. Open Settings in Windows 11 (Windows Key + I).
  2. Go to Bluetooth & devices > Printers & scanners.
  3. Click Add device, wait a few seconds, and click Add manually when the link appears.
  4. Select Add a local printer or network printer with manual settings and click Next.
  5. Select Create a new port, set the type of port to Local Port, and click Next.
  6. In the Port Name dialogue box, enter the exact UNC network path to the shared printer:
    \\HostComputerName\SharedPrinterName
    (For example: \\OFFICE-DESKTOP\HP_LaserJet).
  7. Click OK, select your printer manufacturer and model driver, and finish the setup wizard.

Method 4: Verify Network Profile is Set to Private

Windows Defender Firewall restricts file and printer sharing protocols when a network connection is configured as Public.

  1. Open Settings > Network & internet.
  2. Click on Wi-Fi or Ethernet depending on your active connection.
  3. Under Network profile type, ensure that Private network is selected.
  4. Return to Control Panel > Network and Sharing Center > Change advanced sharing settings.
  5. Under the Private network profile, ensure Turn on network discovery and Turn on file and printer sharing are both enabled.

Method 5: Update Network Printer Drivers on Host and Client

Installing vendor-specific V4 Type 4 drivers resolves compatibility issues caused by generic Microsoft class drivers.

  1. Visit the official support website of your printer manufacturer (HP, Canon, Brother, or Epson).
  2. Download the latest official Type 4 / PCL6 driver package for Windows 11.
  3. Install the updated driver on both the host computer sharing the device and the client PC attempting to print.
  4. Restart both machines and print a test page to verify error-free connectivity.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.