Windows cannot connect to the printer

Windows Error Message

Severity: Minor

What it means

Windows shows "Windows cannot connect to the printer" when adding or using a printer fails. An error code often follows, such as "Operation failed with error 0x0000011B".
For a printer on USB or Wi-Fi, the usual causes are loose cables, the PC and printer on different networks, or a driver problem. Error 0x0000011B affects printers shared from another Windows PC: a Microsoft security update in 2021 changed how those connections work.

How to Fix It

  1. Restart the printer: turn it off, unplug it, wait at least 20 seconds, and plug it back in.

  2. For a USB printer, check both ends of the cable. For a wireless printer, make sure the PC is on the same network as the printer, not a guest network or a different router.

  3. Remove the printer in Settings > Bluetooth & devices > Printers & scanners (Settings > Devices on Windows 10), restart the PC, then add it again with Add device.

  4. Restart the print service: open Services, right-click Print Spooler and select Restart.

  5. Install the printer's latest driver, from Windows Update or the printer maker's website.

  6. For 0x0000011B on a shared printer, install the latest Windows updates on both PCs, starting with the one the printer is connected to. If that does not help and it is a network printer with its own IP address, add it directly: Add device > The printer that I want isn't listed > Add a printer using an IP address or hostname.

Frequently Asked Questions

Should I use the registry change I found online for 0x0000011B?

Many guides suggest setting RpcAuthnLevelPrivacyEnabled to 0. That turns off the protection Microsoft added for a security flaw (CVE-2021-1678), so treat it as a last resort, and only on a home network you trust.