• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
We have new content about printers, Click here to check it out!
Check some of the most frequent questions about Instant Ink: HP INSTANT INK, HP+ PLANS: INK AND TONER.


Check out our WINDOWS 11 Support Center info about: OPTIMIZATION, KNOWN ISSUES, FAQs AND MORE.
HP Recommended
HP Deskjet 2540 All-in-One Printer
Microsoft Windows 11

I have installed and uninstalled my printer several times and it isn't working!  It prints only part of the page or not at all.  The services keep in stopping even if I start them up again.  I even tried to turn off firewall to see if it would work and briefly, I was able to print one page.  I want my printer to work.  

1 REPLY 1
HP Recommended

@Kristine727, Welcome to HP Support Community. 

 

Thank you for posting your query, I will be glad to help you. 
It sounds like your HP Deskjet 2540 is facing a combination of driver, service, and connectivity issues on Windows 11. Here are some steps to resolve the issue:

Run HP Print and Scan Doctor

  1. Download and run HP Print and Scan Doctor
  2. Let it diagnose and fix common issues with drivers, connectivity, and spooler services.

Reset the Print Spooler Service

  1. Press Win + R, type services.msc, and press Enter.
  2. Scroll down and find Print Spooler.
  3. Right-click Print Spooler and select Stop.
  4. Open File Explorer and go to:C:\Windows\System32\spool\PRINTERS
  5. Delete all files inside this folder (don’t delete the folder itself).
  6. Go back to the Services window, right-click Print Spooler, and select Start.

Perform a Clean Installation of the Printer Driver

  1. Uninstall the printer from Settings > Bluetooth & devices > Printers & scanners.
  2. Open Device Manager (Win + X > Device Manager).
  3. Expand Print queues, right-click your HP Deskjet 2540, and click Uninstall device.
  4. Restart your PC.
  5. Go to HP Deskjet 2540 drivers page.
  6. Download and install the Full Feature Software.

Disable SNMP on the Printer Port (Fixes Partial Printing Issues)

  1. Press Win + R, type control, and hit Enter to open the Control Panel.
  2. Go to Devices and Printers.
  3. Right-click your HP printer and select Printer properties.
  4. Click the Ports tab and find the port checked for your printer.
  5. Click Configure Port and uncheck SNMP Status Enabled.
  6. Click OK and Apply.

Check Windows Firewall & Security Software

Since you mentioned disabling the firewall helped briefly, try allowing HP services:

  1. Press Win + R, type firewall.cpl, and hit Enter.
  2. Click Allow an app or feature through Windows Defender Firewall.
  3. Find HP Printer or related services and ensure they are allowed through both Private and Public networks.

Test Printing with Different Software

Try printing from Notepad instead of other apps. If Notepad prints fine, the issue might be related to the software you’re printing from.
 

I hope this helps. 🚀

 

Take care and have a good day. 

 

Please click “Accepted Solution” if you feel my post solved your issue, it will help others find the solution. Click the “Kudos/Thumbs Up" on the bottom right to say “Thanks” for helping! 

 

Max3Aj

HP Support 

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.