-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Printers
- Printer Setup, Software & Drivers
- HP OfficeJet 5740 series Error Printing

Create an account on the HP Community to personalize your profile and ask a question
06-01-2020 02:33 PM
I have a network attached HP OfficeJet 5740 series that works fine with my "home" Windows 10/64 Dell XPS13 but I have had trouble with installing on my "work" Windows 10/64 Dell Lattitude 5300.
After receiving "Driver failed to install" messages, I found a 2017 forum post including a complete uninstall and purge of all software, and adding registry entries:
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers]
"KMPrintersAreBlocked"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint]
"Restricted"=dword:00000001
"TrustedServers"=dword:00000000
"ServerList"=""
"InForest"=dword:00000000
"NoWarningNoElevationOnInstall"=dword:00000001
"UpdatePromptSettings"=dword:00000002
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows NT\Printers\PointAndPrint]
"Restricted"=dword:00000001
"TrustedServers"=dword:00000000
"ServerList"=""
"InForest"=dword:00000000
"NoWarningNoElevationOnInstall"=dword:00000001
"UpdatePromptSettings"=dword:00000002
After reinstalling OJ5740_Full_WebPack_40.13.1176 software, the printer is now "Ready" but printing an document from the Latitude 5300 results in an instant "Error - Printing" status.
I have run the HPPSdr utility which can get the printer to print an "internal test page" but could not resolve this Error - Printing. Scanning is fine from the HP Smart App. Printing a PDF document from HP Smart shows the same Error - Printing.
Printing from the "Home" computer is still OK.
I would love to find out that last "trick" to get this to work!
06-05-2020 01:49 PM
Welcome to the HP Support Community.
Let's try to do a root uninstall and reinstall of the software:
Unplug any USB cable, if any, before doing this.
1.) In Windows, search for and open Programs and features
2.) Select your HP Printer
3.) Select Uninstall
4.) In Windows, search for and open Devices and printers
5.) In the Devices and Printers windows look for your HP printer. If you see it listed right-click on it and choose 'Delete' or 'Remove Device'
6.) Open up the run command with the "Windows key + R" key combo.
7.) Type printui.exe /s and click Ok. (Note: there is a space in between "printui.exe" and "/s")
8.) Click on the "Drivers" tab
9.) Look for HP Printer driver. If you see it Click on it and click Remove at the bottom
10.) Select Ok
11.) Select Apply and Ok on the Print Server Properties windows
12.) Close Devices and Printers
13.) Open up the run command with the "Windows key + R" key combo
14.) Type c:/programdata and click Ok. Go to Hewlett Packard folder, remove any printer related folders & files.
15.) Restart the computer.
Once done, please download and install the software from here:
https://support.hp.com/in-en/drivers
If the issue persists, create a TCP IP port
1. Print a Configuration Page to get the printer's IPv4 address (you can also tap on the wireless icon on the front panel of your Printer to get the IP address)
2. On your PC, go to Control Panel, from Devices and Printers, right-click the printer and left-click Printer Properties, select the Ports tab.
3. Click Add Port, select Standard TCP/IP Port, then select New Port and follow the wizard.
4. Type in the proper IP address for the printer.
This video resource will show you how to do it:
Let me know if this helps.
If the information I've provided was helpful, give us some reinforcement by clicking the Accepted Solution and Kudos buttons, that'll help us and others see that we've got the answers!
Thanks!
Have a great day!
I am an HP Employee