-
×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
- Printer Driver Installation Error

Create an account on the HP Community to personalize your profile and ask a question
04-16-2020 09:41 PM
When I try to install driver OJ8600_1316.exe, I get the following error:
Call to DriverPackageUninstall returned error 5 for package 'C:\Windows\System32\DriverStore\FileRepository\hpwia_oj8600.inf_amd64_5a590b7ff0bfb6f2\hpwia_oj8600.inf': A caller of DriverPackageInstall must be a member of the Administrators group to install a driver package.
I am the only user of my home laptop.
Solved! Go to Solution.
Accepted Solutions
04-18-2020 06:12 AM - edited 05-14-2020 11:39 AM
When you try installing or uninstalling the HP Basic Device Software for your printer, a form of the following error returns:
Note: if you have an HP Computer, follow the steps within the HP PC Solution section and do not follow any further steps within this section
- From the search bar type CMD, right-click on Command Prompt and select Run as Administrator.
- Copy the following command, then right-click the Command Prompt dialog and select Paste, then press Enter till any command completes
- processing:
takeown /f %windir%\System32\DriverStore\FileRepository /r /d y
Note: This provides your user full permissions to the File Repository system folder and deletes all HP's folders from within the system folder
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
Note: if you receive any Syntax error and your operating system language is in a different language than English, review the following Takeown command documentation from Microsoft for your language and modify the syntax accordingly. - From the Start menu click the Gear icon, select Apps and uninstall the HP Basic Device Software for your printer.
- Download and install the latest HP Basic Device Software for your printer as necessary:
https://support.hp.com/us-en/drivers/printers
HP PC Solution
- From the search bar type CMD, right-click on Command Prompt and select Run as Administrator.
- Copy the following command, then right-click the Command Prompt dialog and select Paste, then press Enter till any command completes processing:
takeown /f %windir%\System32\DriverStore\FileRepository /r /d y
Note: This provides your user full permissions to the File Repository system folder
icacls "%windir%\System32\DriverStore\FileRepository" /grant %username%:(OI)(CI)F /T
takeown /f %windir%\System32\DriverStore\FileRepository /A /r /d y
Note: if you receive any Syntax error and your operating system language is in a different language than English, review the following Takeown command documentation from Microsoft for your language and modify the syntax accordingly. - From the Start menu click the Gear icon, select Apps and uninstall the HP Basic Device Software for your printer and evaluate the error message, then close the Uninstall dialog.
Right-click the Start button and select Run, then paste the following path and press OK:
%windir%\System32\DriverStore\FileRepository
- Locate and delete only the HP Folder listed in the error message.
Example: following below error message, delete the hpwia_pw477dw.inf_amd64_efa093991b821954 folder as an example: - From the Start menu click the Gear icon, select Apps and uninstall the HP Basic Device Software for your printer.
- Download and install the latest HP Basic Device Software for your printer as necessary:
https://support.hp.com/us-en/drivers/printers
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 🙂
04-18-2020 06:12 AM - edited 05-14-2020 11:39 AM
When you try installing or uninstalling the HP Basic Device Software for your printer, a form of the following error returns:
Note: if you have an HP Computer, follow the steps within the HP PC Solution section and do not follow any further steps within this section
- From the search bar type CMD, right-click on Command Prompt and select Run as Administrator.
- Copy the following command, then right-click the Command Prompt dialog and select Paste, then press Enter till any command completes
- processing:
takeown /f %windir%\System32\DriverStore\FileRepository /r /d y
Note: This provides your user full permissions to the File Repository system folder and deletes all HP's folders from within the system folder
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
Note: if you receive any Syntax error and your operating system language is in a different language than English, review the following Takeown command documentation from Microsoft for your language and modify the syntax accordingly. - From the Start menu click the Gear icon, select Apps and uninstall the HP Basic Device Software for your printer.
- Download and install the latest HP Basic Device Software for your printer as necessary:
https://support.hp.com/us-en/drivers/printers
HP PC Solution
- From the search bar type CMD, right-click on Command Prompt and select Run as Administrator.
- Copy the following command, then right-click the Command Prompt dialog and select Paste, then press Enter till any command completes processing:
takeown /f %windir%\System32\DriverStore\FileRepository /r /d y
Note: This provides your user full permissions to the File Repository system folder
icacls "%windir%\System32\DriverStore\FileRepository" /grant %username%:(OI)(CI)F /T
takeown /f %windir%\System32\DriverStore\FileRepository /A /r /d y
Note: if you receive any Syntax error and your operating system language is in a different language than English, review the following Takeown command documentation from Microsoft for your language and modify the syntax accordingly. - From the Start menu click the Gear icon, select Apps and uninstall the HP Basic Device Software for your printer and evaluate the error message, then close the Uninstall dialog.
Right-click the Start button and select Run, then paste the following path and press OK:
%windir%\System32\DriverStore\FileRepository
- Locate and delete only the HP Folder listed in the error message.
Example: following below error message, delete the hpwia_pw477dw.inf_amd64_efa093991b821954 folder as an example: - From the Start menu click the Gear icon, select Apps and uninstall the HP Basic Device Software for your printer.
- Download and install the latest HP Basic Device Software for your printer as necessary:
https://support.hp.com/us-en/drivers/printers
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 🙂
05-12-2020 08:26 AM
Welcome to the HP Support Community. I'd be happy to assist you with the printer driver.
Please try the Microsoft Troubleshooter to uninstall the printer driver.
Hope this helps! Keep me posted.
Please click “Accept as 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!
Have a great day!
Asmita
I am an HP Employee
05-12-2020 09:06 AM
Microsoft troubleshooter did not work at all.
I ended up using Iobit uninstaller, which got all the old drivers/leftover code off the system.
However, I am still getting the same permissions-related error trying to reinstall the drivers - so I'm only half-way there. I realyl don't want to muck with all the print spooler mechanics in some of the solutions posted - I followed those instructions and ended up wiping out ALL my printers from the system - from software like Nitro PDF which saves files as pdfs.
I just want to get rid of this permissions error. It shouldn't be there in the first place.