I started my day troubleshooting a Windows 7 SP1 client which couldn’t install a specific printer.
The same printer could be installed on other computers, both physical and virtual.
After verifying that the server (Windows 2008 R2) was not the issue I started looking into the computer configuration.
The eventlog did not show any other issues besides the printer issue.
I verified that the current user was indeed local administrator.
When browsing the Printserver from the client and trying to connect to the printer I received Error 0x00000006.
I then tried to add the printer as TCP/IP, but then I got the 0x00000002 error instead!
The conclusion I came to was that it must be a driver issue on the client machine.
To delete drivers on a client you should use the built-in PrintUI-program.
Running the following command will take you to the appropriate setting:
printui.exe /s /t2
Delete the driver of the printer model you’re trying to install:
Try to reinstall/redistribute the printer and make sure it succeeds.
If the issue persists I recommend deleting the following registry-key and restarting the Printer Spooler-service:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations
If this post helped you, or if you’re still having problems let me know!
thanks for help. fixed
this must be from a while back because I now have a new printer which works fine. thanks for your help.
Glad I could help guys!
If you went through other forums before you found this feel free to tell them about this page/solution.
It Doesn't Work. Do you have any other solution?
Hi Lucas,
Have you verified that the current user is a local administrator? Does the event log give you any information when you're trying to connect the printer?
Hi Joakim,
just today I have encountered this issue. Everything was fine until I tried to print an excel (2010 pro) document, under the print option it stated unable to connect to printer, everything else printed fine, word, web, notepad etc.
In an attempt to solve, I removed printer and went to reinstall, which failed.
I have tried using windows installer and HPs installer (both of these just state install fail via the win installer bar), your method (this gives me the following:
unable to install printer. operation could not be completed (error 0x00000006). Nothing works.
Machine is running Win7 64, standalone, printer is HP Photosmart 7520. Printer installed fine on laptop with same OS using the windows installer?!
I tried system restore back to prior removing the printer and that failed to recover the printer. Any ideas before I go the whole hog and just reinstall windows would be great, thanks.
Hi Benn,
Sorry for the slow response. When you removed the printer, did you do it from "Devices and Printers"? After doing so you should do the "printui.exe /s /t2" step do verify that the driver is not still screwing with your system.
Hi I am having the same issue on Windows 2008 server. Please suggest any solution.thanks
Hi Mayur,
Did you try the steps above on the client? Re-adding the drivers on the server should not make a differance, they are most likely corrupt on the client.
Your article was a big help for me. Thanks for taking the time to publish it. I had two sets of drivers to remove for a Samsung printer that I was trying to share from Windows 7 to Windows 8. It took a couple of restarts to remove drivers that were "in use," but this got the job done!
I'm having the same problem with a Win7 64 bit, trying to install a Kyocera printer that's on a 2008 server. I checked and there are no drivers installed and I've cleaned the registry of all Kyocera entries. I updated the driver on the server and since have not been able to get the GPO that connects the printer to work on this PC (works on all others in the office). When I try to add it manually I get the error you show in this article. I've tried this a local and OU admin.
Amazing! Thank you. I had been searching for a solution for hours and deleting the registry key and restarting the Printer Spool service did it. I never would have found that myself. Thanks again!
Hi Joakim,
i´m trying for days, trying to solve such problem, well let me describe what i´m facing: I´m using a hp thin client t-5740,
my print server is on windows 2008RrR2
when i try to had my network printer from the client, i receve this message:cannot connect to printer.
details:failed to connect to printer error 0x00000002
pleaseeeeeeee can you help me solve this problem step by step?
Hi Manuel,
Which operating system are you running on the client? Windows 7 Pro?
Did you follow all the steps in the guide? Check if the Event-log is reporting anything out of the ordinary. Let me know if you find anything.
/ Joakim
good day joaKim,
1- i,m using windows Embedde Standard 2009 service Pack 3
2- yes i did follow all the steps in the guide.
3- the event log does not seems to show or reporting anything out of the ordinary, I also folowed all the steps above still with no results… please joakim help!!!
please
Brilliant! I tried several other suggested methods to solve this one. Server 2008 64 bit with Win 7 workstaions. The printui tool did the job. Thanks.
Hi Joakim,
Nice and thanks. I pretty damn sure for every printer issue to add from LAN or Wireless Printer, This will work perfectly with no issues.
Thanks Joakim.
Hi
I also had this problem, and the reason was DNS hickup.
A manual ipconfig /flushdns resolved the problem.
Thanks, worked 1st time !!
Hi,
Thanks for the feedback, especially to you who reported other solutions.
Keep up the good work!
/ Joakim
i have same issues with you. I follow your instruction but i have no result. it is always said "Windows can not connect Operation failed with code 0x00000006"
Printer Epson L300 installed on PC1, and i've tried to connect from PC2, both PC use Windows 7 ultimate 32bit.
when i run regedit, i cant find "PendingFileRenameOperations', there is only "FileRenameOperations" that exist.
FYI, on PC3 which use Windows XP, i can share it easily.
I've tried every solution i know, but 'till now i have no solutions :(
Find article from Citrix. Fixed for me!
http://support.citrix.com/article/CTX129315
Amazing!!!! You my best helper! THX FROM RUSSIA!!!
I finally found a solution for this problem!
Since not all PCs encounters this problem, first is to find a PC that can install the printer successfully then share the printer. On the PC which encounters the error, install the shared printer. The installation should be successful. After that, add the printer to the PC directly (network name or IP address). When asked about 'use the existing driver?', click 'yes.'
I hope this helps.
Regards
Had this problem when deploying devices with a GPO. Had to cycle the print spooler.