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.dllor 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.
- Press Windows Key + R, type
regedit, and hit Enter to launch the Registry Editor. - Navigate to the following key:
(If theHKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrintPointAndPrintkey does not exist, right-clickPrinters, select New > Key, and name itPointAndPrint.) - In the right pane, right-click an empty space, choose New > DWORD (32-bit) Value, and name it:
RestrictDriverInstallationToAdministrators - Double-click the newly created DWORD and set its value to
0. - Create another DWORD (32-bit) named:
and set its value toUpdatePromptSettings0. - 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.
- Press Windows Key + S, type
cmd, and select Run as administrator. - Stop the Print Spooler service:
net stop spooler - Open File Explorer and navigate to:
C:\Windows\System32\spool\drivers\x64\3 - Locate the file named mxdwdrv.dll.
- If the file size is 0 bytes or corrupted, copy a healthy
mxdwdrv.dllfromC:\Windows\System32\spool\drivers\x64into the\3directory. - Restart the Print Spooler:
net start spooler - 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.
- Open Settings > Bluetooth & devices > Printers & scanners.
- Click Add device, then click Add manually next to “The printer that I want isn’t listed”.
- Select Add a printer using an IP address or hostname and click Next.
- Under Device type, choose TCP/IP Device.
- Enter the static IP address of the network printer and complete the wizard using manufacturer-provided drivers.