Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / Windows 10 / Error 0x0000007e: Windows cannot connect to network printer, Operation failed

March 11, 2024 Windows 10

Error 0x0000007e: Windows cannot connect to network printer, Operation failed

Error 0x0000007e when connecting a network printer occurs quite often both in Windows 10 and Windows 7. In most cases this error occurs in configurations when the printer is directly connected to another Windows computer (print server) and shared for printing from other computers over the network.

In my case, the error appeared in the following configuration. There is a print server on the 32-bit version of Windows Server 2008 x86 with several shared HP (Hewlett-Packard) printers. If you try to connect any printer from this server to a computer with 64-bit clients (Windows 10 or Windows 7), the operating system successfully downloads the correct version of the HP printer driver from the print server, but fails to install it with the error 0x0000007e.

Windows cannot connect to the printer.
Operation failed with error 0x0000007e.

Windows cannot connect to the HP printer. Operation failed with error 0x0000007e

On Windows 10 computers, the printer connection error looks a little different:

Operation could not be completed (error 0x0000007e).

The specified module could not be found.

Operation could not be completed (error 0x0000007e). The specified module could not be found

However, there are no problems with connecting and installing shared network printers from the same print server from 32-bit Windows editions.

Error 0x0000007e appears only on 64-bit clients when trying to connect to a shared Hewlett Packard printer installed on a 32-bit print server (running on Windows Server 2003 x86 or Windows Server 2008 x86). Typically, the problem appears not with all HP printers, but only with those which are using the universal printer driver HP PCL (HP Universal Print driver).

What do you need to do to fix the error? First of all, you have to check that both a 32- and a 64-bit driver versions are installed on the print server. As you can see, x64 and x86 versions of HP Universal Printing PCL 6 driver are installed.

print server installed drivers - HP Universal Printing PCL 6 driver

Having looked through HP and Technet forums, I found information that in the Universal HP Printing driver settings specified a fixed path to a spooler file (print queue) for a 32-bit system (spool\drivers\w32x86\3), which the 64-bit client unable to find, so error 0x0000007e appears. The file path is specified in the printer driver settings on the print server. In my case, it has been spool\DRIVERS\W32X86\3\hpcpn112.dll, but a dll file name depends on the Universal HP Printing driver version. Thus, the 32-bit version of the HP Universal Printing printer driver is incompatible with x64 versions of Windows. However, this can be fixed manually.

To fix this problem, you need to delete the corrupted (incorrect) registry key of the HP print driver on a print server (computer) to which the shared printer is directly connected. To solve this problem on a 32-bit print server:

  • Open the Registry Editor (regedit.exe).
  • Go to the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\ and expand the branch with the printer name (In our case, it is HP Color LaserJet 5550 PCL 6). BIDI driver registry section
  • In the registry key of the printer which is facing with the problem, delete BIDI key in CopyFiles section.
    Note. In a productive environment, it is recommended to previously export the registry key to be deleted to a separate reg file. Then you’ll be able to roll back to the original settings.
  • Restart the print spooler service on the client:
    net stop spooler
    net start spooler
    cmd restart print spooler
  • After removing the BIDI registry key on the server side, try to connect the shared HP printer again from your Windows 10 x64 client. It should be installed successfully without any errors

If this method doesn’t work, or if you receive a 0x0000007e error when connecting non-HP printers, you can try to connect the printer through the local port as a workaround. Here’s how to do it:

  1. From the Control Panel, add a new (local!!!) printer on your computer (Add a local printer or network printer manual settings).add a local printer from control panel
  2. Select that you want to create a new local port (Port Local type).
  3. As a port name you need to specify the full UNC path to the shared printer. For example, if ManchPC1 is the name of the computer to which the printer is connected and the shared printer named Xerox2320, then the UNC address of this printer will look like this: \\ManchPC1\Xerox2320, or you can specify the computer’s IP address instead of the name \\192.168.1.55\Xerox2320.connect shared printer using local port with UNC path
  4. After that, it remains to select (or install a new) a suitable printer driver.

There is another similar method of connecting such a network printer with the help of LPT port mapping.

  1. Remove the printer driver for the connected printer from the driver repository. Select Print Server Properties -> Drivers tab -> select the driver (both 32 and 64 bit) and click the Remove.remove old print driver version from server
  2. Create a local printer with a connection through the new local LPT2.
  3. Then use the following command to create a permanent mapping of this virtual LPT port to the UNC address of the shared printer: net use LPT2 \\ManchPC1\Xerox2320 /persistent:yes local print lpt port to unc path mapping
  4. It remains to install the printer driver and try to print a test document.

 

6 comments
7
Facebook Twitter Google + Pinterest
previous post
Configure Workgroup Failover Cluster without Active Directory on Windows Server
next post
Complete List of Windows Update Error Codes

Related Reading

Change BIOS from Legacy to UEFI without Reinstalling...

April 21, 2025

Uninstalling Windows Updates via CMD/PowerShell

April 18, 2025

Allowing Ping (ICMP Echo) Responses in Windows Firewall

April 15, 2025

How to Pause (Delay) Update Installation on Windows...

April 11, 2025

How to Prefer IPv4 over IPv6 in Windows...

April 9, 2025

6 comments

Lukasz R October 8, 2015 - 9:06 am

Great article – solved my problem. THX 🙂

Reply
jeng1111 August 2, 2016 - 6:06 pm

Brilliant!  How rare that someone actually understands the root problem and can tell us exactly how to fix it.  Thanks!

Reply
Marcus Ickes August 9, 2016 - 5:12 pm

Thank you so much.  This was a tremendous help and solved my problem.

Reply
Jonas Konski June 21, 2017 - 12:13 pm

Thanks a lot! This was giving me trouble for days. It made no sense, so glad you brough back some logic.

Reply
Russell December 1, 2017 - 9:08 pm

Thank you, helped me out big time.

Reply
Nimalasiri December 28, 2018 - 4:00 am

Hats off. It’s worked. Thank you verymuch.

Reply

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMware
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025
  • How to Write Logs to the Windows Event Viewer from PowerShell/CMD

    March 3, 2025
  • How to Hide (Block) a Specific Windows Update

    February 25, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Booting Windows from GPT Disk on BIOS (non-UEFI) Computer
  • Removable USB Flash Drive as Local HDD in Windows
  • How to increase KMS current count (count is insufficient)
  • How to Disable UAC Prompt for Specific Applications in Windows
  • Managing Printers and Drivers on Windows with PowerShell
  • Managing Printers from the Command Prompt in Windows
  • Fix RDP Authentication Error: The Function Requested Is Not Supported
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top