-
×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
- driverpackageuninstall returned error 5 for package I have ...

Create an account on the HP Community to personalize your profile and ask a question
08-31-2020 11:54 AM
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
08-31-2020 01:08 PM
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 🙂
09-03-2020 01:13 PM
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.
09-16-2020 08:56 AM
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?
09-26-2020 02:09 PM - edited 09-26-2020 02:11 PM
@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
09-27-2020 01:48 PM
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!!!