*Update - we are seeing this issue less these days. Are many of you still having this issue? If so, please describe for me in the comments section so I can see if I can recreate the pattern or if I can come up with a better solution. Or email me.
We are seeing this error when attempting to install printers (drivers) on new Windows 7 builds. The simplest solution I have found is reboot the computer and log on with a different administrative account. Often then the printer driver can be installed without getting the error.
Here's another thing I have found. Running procmon during the installation shows 'access denied' on C:\Windows\System32\DriverStore\infpub.dat. Try editing the security on this file and add the local Administrators to it, will full control. After doing this I've had success getting printer drivers to install that would give the error 0x00000057. Note - it may be necessary to change the security on all of the .dat files in the DriverStore folder to get the driver to install. Here's a script that will change the security on all the files for you.
*****Note***** - This problem is not limited to printer drivers. Also, if you use my script, as ridiculous as it sounds, you have to be quick. Get everything ready to perform the driver install, run the script, and then run the install, as quickly as possible after running the script. You are racing against windows resetting the permissions.
Also, I have noticed after changing the permissions on the files Windows will change them back, removing what you have added.
If you need help on changing the permissions on the file maybe these will help:
Change permissions on C:\Windows\System32\DriverStore\infpub.dat to include Administrators with Full Control.
Browse to C:\Windows\System32\DriverStore
Right click the file infpub.dat
Choose Properties
Click Security Tab
Click Edit Button
Click Add Button
Click Locations button and choose the local computer account (should be first item in list)
In the box type: Administrators
Click Check Names – this should come back underlined
Click Ok
With Administrators highlighted, put a checkmark in the checkbox next to Full Control
Click Ok
Click Ok
Retry installing the printer driver.
Subscribe to:
Post Comments (Atom)
New beginner's guide to PowerShell on my GitHub page
I created a beginner's guide to PowerShell here: https://github.com/aamjohns/Powershell_Guide/blob/main/README.md I hope it helps someo...
-
I encountered this error using Office 2016 (32-bit) on Windows 7 x64. Logged on to the system as a User, I opened Control Panel>Mail...
-
Downloads MSI-Installer or Zip of Executable Instruction Manual PDF Description I started creating instructions similar to: Acc...
-
*****Transcode 360 will not work with MyMovies running on 64-bit operating systems. If you are using something like Vista Ultimate 64-bit yo...
13 comments:
I hope this helps people with this annoying problem.
This appears to be the problem for me. After following your instructions, it doesn't seem to work. The permissions keep getting changed back. Any other tips?
Kelly, the only other thing I have found to work is log on with a different profile. Try with a different profile. I hope it works.
I opened the dialog window on the old HP Deskjet printer installed on my new Windows 7 machine; selected ports; scrolled down & checked USB001. The printer immediately printed the test page. Changing the default port to USB001 was the answer.
Thanks for this post, i will try that.
Thank you very much! I've been all day trying to make work a new printer (Samsung ML-2165W). I tried your script first with no success, but then I set the full control to infpub.dat and work OK! Sorry for comment in an old post, but I want to thank you!
Thank you SOOOO much it helped me with my problem! I tried everything prior to. I wish I just listened to you first!
Thanks for sharing information .This is very helpful.
this is awesome! I have been tearing my hair out for days. thank you!!!!
renaming the file worked!
04-16-2016 1:56pm mountain. After so much time the above instructions worked for me. It was a needle in a hay stack to me. Thank you so much.
Thank you anonymous for the hot tip. I renamed infpub.dat and tried connecting to a networked HP printer again. Success! I tried a lot of things prior to that without success so maybe this is the first thing to try.
great writing
Post a Comment