-
1
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
1
×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
- My Deskjet 2540 printer no longer works

Create an account on the HP Community to personalize your profile and ask a question
03-01-2022
12:51 PM
- last edited on
03-02-2022
11:58 AM
by
Ric_ob
Hi, I have an HP Deskjet 2540 printer connected with USB cable, which probably, after some Windows 11 update, doesn't work anymore.
Among other things on my Lenovo Ideapad 3 notebook, in the settings, it tells me that the printer is inactive and it is impossible to set it as default.
I have tried the various suggestions from the HP site. I also installed the HP Scan Doctor software, which made me download the full software again. So I uninstalled the old software and reinstalled the new one, but in the end the problem remained. In addition, the HP Scan Doctor, when he diagnoses the scanner, reports me a driver error.
I don't know what to do anymore.
Do you have any suggestions.
Thank you
Solved! Go to Solution.
Accepted Solutions
03-08-2022 07:20 AM
I would suggest you try the Windows built-in drivers. Follow the steps below:
• Go to Control Panel - Devices and Printers - Click on "Add printer" and follow the on-screen instructions.
• When the page prompts for the drivers, select "Windows update". The driver list will be updated.
• Click HP, Hewlett Packard, or Hewlett-Packard in the Manufacturer pane, and then click the name of your printer in the Printers pane.
Refer to this document HP Printers - Installing and Using the Windows Built-in Print Driver for help.
Give us some reinforcement by clicking the Accepted Solution button, that'll help us and others see that we've got the answers and did reply to you!
Thanks!
Have a great day!
I am an HP Employee
03-04-2022 03:31 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
Let me know if this helps.
If the information I've provided was helpful, give us some reinforcement by clicking the Accepted Solution button, that'll help us and others see that we've got the answers!
Thanks!
Have a great day!
I am an HP Employee
03-06-2022 10:12 AM
I tried to follow all the steps provided, I specify that: at point 5 my printer was not present, at point 9 there was no HP driver, at point 14 the Hewlett Packard folder was empty, so for safety I completely deleted the folder in question and then I also deleted another folder named HP. I tried to install the software from the HP website again, but the problem persists.
I await further instructions,
Thank you
Greetings
Catia
03-08-2022 07:20 AM
I would suggest you try the Windows built-in drivers. Follow the steps below:
• Go to Control Panel - Devices and Printers - Click on "Add printer" and follow the on-screen instructions.
• When the page prompts for the drivers, select "Windows update". The driver list will be updated.
• Click HP, Hewlett Packard, or Hewlett-Packard in the Manufacturer pane, and then click the name of your printer in the Printers pane.
Refer to this document HP Printers - Installing and Using the Windows Built-in Print Driver for help.
Give us some reinforcement by clicking the Accepted Solution button, that'll help us and others see that we've got the answers and did reply to you!
Thanks!
Have a great day!
I am an HP Employee