We help IT Professionals succeed at work.
Troubleshooting Question

File permissions issue

38 Views
Last Modified: 2020-09-09
Trying to uninstall an HP officejet 4650. Receive "Call to DriverPackageUninstall return error 5 for Package. A caller to DriverPackageInstall must be a member of the Admin group to install a driver package". I have tried reinstalling the printer, tried deleting driver files themselves and the Even though the user is an admin and the owner of the folder and files, it is still asking for permissions and then denying access for deletion.
Comment
Watch Question

Hello ThereSystem Administrator
CERTIFIED EXPERT
Distinguished Expert 2018

Commented:
Try a safe mode.
Donnie MaylesAdministrator

Author

Commented:
I have tried to uninstall in safe mode no luck. Same error!
Hello ThereSystem Administrator
CERTIFIED EXPERT
Distinguished Expert 2018

Commented:
You can try to take ownership of the FileRepository folder as suggested here. Run the CMD as administrator and paste:
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
https://h30434.www3.hp.com/t5/Printer-Software-and-Drivers/driverpackageuninstall-returned-error-5-for-package-I-have-a/td-p/7449473
Donnie MaylesAdministrator

Author

Commented:
Tried that too, receive access denied on all accounts. 
DanOwner
CERTIFIED EXPERT

Commented:
can you create a new local admin, then log on as them and try it?  Also right click and run as admin.
System Administrator
CERTIFIED EXPERT
Distinguished Expert 2018
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Donnie, did you run the cmd elevated (right click cmd.exe and select "run as administrator")? You would have to. I don't think you will get access denials, then. If you still do, run checkdisk on c:.
Donnie MaylesAdministrator

Author

Commented:
Thanks for the help. I did end up extracting the drive, connecting to another computer, changed permissions and was able to successfully delete the files. 
Hello ThereSystem Administrator
CERTIFIED EXPERT
Distinguished Expert 2018

Commented:
You are welcome! I am glad I could help.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.