• ×
    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

The solution 

takeown /f %windir%\System32\DriverStore\FileRepository /r /d y
icacls "%windir%\System32\DriverStore\FileRepository" /grant %username%:(OI)(CI)F /T
for /d %G in ("%windir%\System32\DriverStore\FileRepository\hpwia*") do rd /s /q "%~G"
takeown /f %windir%\System32\DriverStore\FileRepository /A /r /d y

Didn't work for me.  Command says access denied

 

HP Recommended

Thank you so much @shlomil. Joined this forum specially to let you know that you saved the day!!  

HP Recommended

You're much welcome @-ST, great to hear so and glad I could help 😀



Click the Yes button to reply that the response was helpful or to say thanks.
If my post resolve your problem please mark it as an Accepted Solution 🙂
HP Recommended

So, I have an HP Pavilion lap top running windows 10 and an HP Officejet 5740.  I am getting the driver package error for the last several weeks.  No matter what I do I cannot get my printer and my laptop to talk to each other and I have no print ability or scan or anything.  I am really lost and don't know what to do next.

HP Recommended

I replaced my HP Envy 5644 with HP OfficeJet 3830 and am unable to remove software for the HP Envy 5644 - receive error 5

Very much appreciate any help!

HP Recommended

I have the same problem failed to uninstall my hp m181fw. However, when I go through your step until deleting the folder, it said it need administrator permission. I am the PC's administrator already but this also disallow me to delete folder. What can I do?

 

HP Recommended

@shlomil I am having the same trouble. I get the error 5 package, could you help?

HP Recommended

I also had the same problem, same error message showing when I tried to uninstall the driver for the HP Envy 5540 All in One, this worked perfectly thank you!

HP Recommended

@ShlomiL Thanks a ton for the solution. I was not able to print from laptop from several months. Finally that snippet helped fix the problem. you nailed it. Once again thank you 

HP Recommended

Help!  I have an Officejet 250 mobile, a refurbished HP business computer, and am desperately trying to install software and drivers for Scanjet 3000 s3.  Could you let me know what things I should type in the command line etc?  Thank you!!!

† 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>.