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

Adding a shared network printer or connecting to an office print server in Windows 11 can abruptly fail with the error dialogue: “Windows cannot connect to the printer. Operation failed with error 0x0000007c” (or ERROR_INVALID_LEVEL). This issue typically arises after deploying Windows cumulative updates to either client workstations or the host print server. Error 0x0000007c prevents users from mapping network print queues, submitting print jobs, or updating shared print drivers across local area networks.

What Causes Error 0x0000007c in Windows 11?

Following Microsoft’s security mitigations for the PrintNightmare vulnerability family (CVE-2021-34527), Windows strictly enforces Remote Procedure Call (RPC) packet privacy and restricts unprivileged Point and Print driver installations. Error 0x0000007c is triggered by:

  • Mismatched RPC Protocol Negotiation: Security updates alter how the Windows Print Spooler (spoolsv.exe) validates RPC bindings between client workstations and print servers.
  • Point and Print Driver Installation Restrictions: Standard domain users are prevented from installing print drivers over the network without elevated administrator credentials.
  • Corrupted Local Spooler Drivers: The client machine retains an obsolete or corrupted copy of mxdwdrv.dll or third-party print vendor files in the spool drivers directory.
  • Network Name and NetBIOS Mismatches: Connecting to the printer via server NetBIOS hostname instead of fully qualified domain names (FQDN) or static IP addresses.

Step 1: Configure Point and Print Registry Policies

Adjusting the Point and Print restrictions in the Windows registry allows client workstations to trust shared drivers from designated print servers.

  1. Press Windows Key + R, type regedit, and hit Enter to launch the Registry Editor.
  2. Navigate to the following key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint
    (If the PointAndPrint key does not exist, right-click Printers, select New > Key, and name it PointAndPrint.)
  3. In the right pane, right-click an empty space, choose New > DWORD (32-bit) Value, and name it:
    RestrictDriverInstallationToAdministrators
  4. Double-click the newly created DWORD and set its value to 0.
  5. Create another DWORD (32-bit) named:
    UpdatePromptSettings
    and set its value to 0.
  6. Restart the Print Spooler service or reboot the workstation.

Step 2: Replace Corrupted mxdwdrv.dll in the Spooler Directory

A known Microsoft regression in certain cumulative updates corrupts the Microsoft XPS Document Writer driver library, triggering 0x0000007c when mapping shared printers.

  1. Press Windows Key + S, type cmd, and select Run as administrator.
  2. Stop the Print Spooler service:
    net stop spooler
  3. Open File Explorer and navigate to:
    C:\Windows\System32\spool\drivers\x64\3
  4. Locate the file named mxdwdrv.dll.
  5. If the file size is 0 bytes or corrupted, copy a healthy mxdwdrv.dll from C:\Windows\System32\spool\drivers\x64 into the \3 directory.
  6. Restart the Print Spooler:
    net start spooler
  7. Retry mapping the network printer.

Step 3: Connect to the Printer via TCP/IP Port Instead of Share Name

Bypassing server share name mapping by connecting directly to the printer’s network IP address circumvents server RPC authentication failures completely.

  1. Open Settings > Bluetooth & devices > Printers & scanners.
  2. Click Add device, then click Add manually next to “The printer that I want isn’t listed”.
  3. Select Add a printer using an IP address or hostname and click Next.
  4. Under Device type, choose TCP/IP Device.
  5. Enter the static IP address of the network printer and complete the wizard using manufacturer-provided drivers.

Get the best tech tips delivered straight to your inbox.

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