First Uninstall your driver from settings->apps->installedapps-> your printer. then restart your PC. then try to install again the your printer driver. it should work.
Thanks.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Cannot reinstall HP LaserJet 6p on Windows 10 desktop due to 'handle is invalid' error.
First Uninstall your driver from settings->apps->installedapps-> your printer. then restart your PC. then try to install again the your printer driver. it should work.
Thanks.
Welcome to Microsoft Q&A!
Thank you for sharing your concerns.
The HP LaserJet 6P is a legacy printer, and HP does not list Windows 10 among the supported operating systems on its current driver page. Therefore, the original HP driver may not install correctly on Windows 10. The error may also be related to an incompatible or damaged printer driver, a Print Spooler issue, or files left behind by an earlier installation.
Please try the following steps.
1. Remove the existing printer and driver
printmanagement.msc.If Print Management is unavailable, open Control Panel > Devices and Printers, select any printer, and then open Print server properties > Drivers.
2. Reset the Print Spooler
C:\Windows\System32\spool\PRINTERS3. Add the printer manually
4. Select an available compatible driver
In the driver selection window, select Windows Update and allow time for the printer list to refresh.
If HP LaserJet 6P appears, select it and complete the installation. If it is not listed, avoid forcing the original legacy driver installation. You may test an available generic or compatible in-box driver, although compatibility and full printer functionality cannot be guaranteed.
If the error continues, please review the following locations for the underlying installation error:
The setupapi.dev.log file records device and INF-based driver installation activity and may reveal the specific driver, file, or permission error that caused the installation to fail.
Because this printer was designed for earlier Windows versions, the most reliable options are usually an available Windows in-box driver or a compatible generic driver. If neither works, the printer may not be fully compatible with Windows 10.
Reference: HP LaserJet 6p Printer Software and Driver Downloads | HP® Support
If you find this information helpful, please click Accept Answer.
Thank you for using Microsoft Q&A.
AI answer
Try this sequence for the HP LaserJet 6p on Windows 10:
The "handle is invalid" message can be consistent with a printer driver or handle problem. In driver validation guidance, an invalid handle exception is raised when a function passes an invalid handle to a system routine, and a handle can also become invalid if it is used after it was closed.