• ×
    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
Seize the moment! nominate yourself or a tech enthusiast you admire & join the HP Community Experts!
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
X576dw
Microsoft Windows 10 (64-bit)

I cannot uninstall printer software.  I get the error

 

Call to DriverPackageUninstall returned error 5 for package

'C:\WINDOWS\System32\DriverStore\FileRepository\hpwia_ojx576_dw.inf_amd64_84180deeab39d1fe\hpwia_ojx576_dw.inf:

A caller of DriverPackageInstall must be a member of the Administrators group to install a driver package.

 

I found this link on the forums; however, it didn't work.

 

https://h30434.www3.hp.com/t5/Printer-Setup-Software-Drivers/driverpackageuninstall-returned-error-5...

 

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
1 REPLY 1
HP Recommended

@floydstime, Welcome to HP Support Community!

I'd suggest you follow the steps from the link https://support.microsoft.com/en-us/help/17588/windows-fix-problems-that-block-programs-being-instal... to resolve the issue.

 

(This is a third-party link. Please do not click on any ad, image, download, popup or link or anywhere else as this is a third-party link meant only for viewing information).

 

Hope this helps! Keep me posted. 

 

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!

TEJ1602
I am an HP Employee

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