Every guide lists its sources, tips, and warnings. Read our editorial policy.

How to Fix "Windows Cannot Connect to the Printer (0x0000011b)" After the PrintNightmare Patch

0x0000011b is not a broken printer. It is the client being refused over RPC, before a single job exists. The September 2021 PrintNightmare fix made that refusal normal. The repair is driver placement and policy. Never a registry delete.

Download the full guide (PDF) Print checklist
Share
Set 52runoob as a preferred source on Google

You double-click a shared printer, Windows spins, and then it says `Windows cannot connect to the printer. Operation could not be completed (error 0x0000011b).` Nothing is wrong with the printer. The client is being refused at the RPC layer before any job exists, and that refusal arrived with the September 2021 PrintNightmare patch. Adding the printer by IP address skips the argument entirely.

Quick steps

  1. Note the exact hex and which PC shows it
  2. Find the machine actually sharing the printer
  3. Try adding the printer by IP address
  4. Match the driver on server and client
  5. Check Point and Print policy before the registry
  6. Only then consider the RPC privacy value

Things you'll need

  • Administrator rights on the PC that shares the printer
  • The printer's IP address or hostname
  • The exact driver package the printer vendor ships
  • Windows 11 24H2 or a current Server build on the sharing machine

Step-by-step

Method 1 of 3

Method 1 of 3: Read What the Code Actually Means

PDF
Step 1: Confirm the Failing Machine Is the Client Download image

Step 1: Confirm the Failing Machine Is the Client

The code appears on the PC trying to use the printer, not on the PC sharing it. If the sharing machine prints locally without trouble, the printer and its driver are healthy. Your problem is the connection, not the device.

Step 2: Find the PC Sharing the Printer Download image

Step 2: Find the PC Sharing the Printer

On a machine where printing works, open Settings → Bluetooth & devices → Printers & scanners, pick the printer, then Printer properties → Sharing. The name after the double backslash is your print server. Write it down.

Step 3: Compare Windows Builds First Download image

Step 3: Compare Windows Builds First

Run `winver` on both machines and note the build. A client on 22631 talking to a server on 19045 is fine. A server missing the 2021 updates explains everything. Five minutes here saves an hour later.

Step 4: Test the Printer by IP Address Download image

Step 4: Test the Printer by IP Address

Go to Settings → Bluetooth & devices → Printers & scanners → Add device → Add manually → Add a printer using an IP address. If that copy prints, the driver and network are fine and only the share is refused.

Source: Microsoft Learn — Printer driver design guide · See also Microsoft Security Response Center — CVE-2021-34527 · Read next: Connect a Printer to Wi-Fi

Step 5: Read the PrintService Admin Log Download image

Step 5: Read the PrintService Admin Log

Open Event Viewer → Applications and Services Logs → Microsoft → Windows → PrintService → Admin. Trigger the failure once more and read the newest entry. It names the server and the call, which tells you which side refused.

Step 6: Restart the Spooler to Clear a Stuck Queue Download image

Step 6: Restart the Spooler to Clear a Stuck Queue

Run `net stop spooler` then `net start spooler` in an elevated prompt. If the printer reports Ready instead of Error - Printing, you had a queue fault wearing the patch as a costume. Re-test before changing anything.

Method 2 of 3

Method 2 of 3: Fix It at the Print Server

PDF
Step 7: Install the Matching Driver on the Server Download image

Step 7: Install the Matching Driver on the Server

On the sharing PC, add the exact package the vendor ships for that model and version of Windows. The client may only reuse a driver the server already holds. A generic driver is not the same thing.

Step 8: Move the Share to a Type 4 Driver Download image

Step 8: Move the Share to a Type 4 Driver

In Printer properties → Advanced, check which driver package is selected and switch to Type 4 if the vendor offers one. Type 4 drivers live on the server only, so no client-side install is attempted. The refusal never fires.

Step 9: Wipe the Client's Old Driver Entry Download image

Step 9: Wipe the Client's Old Driver Entry

Run `printui /s /t2` on the client to open Print Server Properties, then remove the stale driver for that model. Reconnect the share afterwards. A half-installed v3 driver from an earlier attempt produces the same code.

Step 10: Set Point and Print Restrictions Download image

Step 10: Set Point and Print Restrictions

In Group Policy, go to Computer Configuration → Administrative Templates → Printers → Point and Print Restrictions and allow that specific server. If the setting is greyed out, the machine is domain-managed and your admin has to change it upstream.

Source: Microsoft Learn — PrintManagement Module · See also Microsoft Learn — Print Spooler Architecture · Read next: Connect a Printer to Wi-Fi

Step 11: Connect With PowerShell Instead of the UI Download image

Step 11: Connect With PowerShell Instead of the UI

Run `Add-Printer -ConnectionName \\server\printer` in an elevated window. It prints the real error text instead of a dialog. A message about access denied points at credentials, not at the patch.

Step 12: Patch Server and Client in the Same Month Download image

Step 12: Patch Server and Client in the Same Month

Install the same monthly cumulative update on both machines. A client patched in September against a server last touched in July is a known mismatch. Check Windows Update history on each before you blame the printer.

Method 3 of 3

Method 3 of 3: Trade Security for Compatibility

PDF
Step 13: Understand What the Registry Value Does Download image

Step 13: Understand What the Registry Value Does

`RpcAuthnLevelPrivacyEnabled` sits under `HKLM\System\CurrentControlSet\Control\Print`. After the 2021 patches it defaults to 1, which forces packet privacy on print RPC calls. That setting is what blocks your client.

Step 14: Record the Value Before You Touch It Download image

Step 14: Record the Value Before You Touch It

Run `reg query "HKLM\System\CurrentControlSet\Control\Print" /v RpcAuthnLevelPrivacyEnabled` and save the output to a text file. You will need the original value to put back, and you will forget it by Thursday.

Step 15: Accept What Lowering It Actually Does Download image

Step 15: Accept What Lowering It Actually Does

Deleting the value or setting it to 0 reopens the RPC weakness that CVE-2021-34527 exploited. Every tutorial telling you to delete it is telling you to undo the fix. Read that sentence twice before you continue.

Step 16: Apply It Only on a Segregated Network Download image

Step 16: Apply It Only on a Segregated Network

On a lab LAN with no untrusted machines, set the DWORD to 0 with `reg add` and restart the spooler. On any network with guests, do not. If the value was absent before you started, do not create it, because the default of 1 is what you want.

Source: Microsoft Learn — Printing (Documents and Printing) · See also Microsoft Learn — Device and driver installation · Read next: Connect a Printer to Wi-Fi

Step 17: Put the Value Back When You Are Done Download image

Step 17: Put the Value Back When You Are Done

Set it to 1 again and restart the spooler once the share is replaced. A machine left at 0 for a year is a machine with an open door. Write the date you changed it on the same note.

Step 18: Stop Here and Replace the Share Download image

Step 18: Stop Here and Replace the Share

If the server is a Windows 10 Home box or an old NAS, stop patching around it. A printer with its own Ethernet port, or a small print server box, removes the shared-driver path entirely. That is the actual repair.

Tips

  • A printer shared from a Windows 10 Home box will keep biting you. Move the share to a machine you control.
  • Type 4 drivers install on the client without admin rights. Type 3 ones usually do not.
  • If only one user fails, it is their cached credentials, not the patch.
  • Write both build numbers down before you change a single setting.

Warnings

  • Setting RpcAuthnLevelPrivacyEnabled to 0 removes the RPC packet privacy the CVE-2021-34527 fix depends on.
  • Do not run registry edits from a blog you cannot date. Several were written before the patch shipped.
  • Removing a printer share while jobs are queued deletes those jobs without asking.
  • A workaround that needs local admin on every client is a policy change, not a repair.

Frequently asked questions

Is 0x0000011b a virus or a corrupted driver?

Neither. The driver never loaded. The client's RPC call to the server was refused first, so there was nothing to corrupt.

Why did this work before September 2021?

The old print client installed a v3 driver from the server without asking anyone. The patch stopped that for non-admins.

Does the registry value fix it permanently?

It holds until the next cumulative update tightens it again, and it reopens the hole the patch was built to close.

Will a Type 4 driver really help?

Yes, when the server has one for that model. Type 4 drivers stay on the server, so the client never installs anything.

References

  1. Microsoft Support — Windows help and learning. https://support.microsoft.com/en-us/windows
  2. Microsoft Learn — Troubleshooting documentation. https://learn.microsoft.com/en-us/troubleshoot/
  3. Microsoft Learn — Windows API documentation. https://learn.microsoft.com/en-us/windows/win32/
  4. Microsoft Learn — PowerShell documentation. https://learn.microsoft.com/en-us/powershell/

Every guide is reviewed against its sources. See our editorial policy.

Get one fix like this every week

One short email with the most useful new guide and a printable checklist. No spam, unsubscribe anytime.

Reader comments

0 so far

Finished this guide? Tell other readers what worked, what didn't, and what you would change.

Stuck on a step? Tell us your device model and what happened — an editor reads every comment and usually replies within 48 hours.

Be kind and constructive. Comments are published instantly.