Fix: Windows Cannot Connect to the Printer Error 0x00000057

Several times, I ran into the following issue: when trying to connect a network printer from one of the print servers, the error 0x00000057 Windows cannot connect to the printer appeared on a client machine. The error occurred during the installation of the printer driver from the Print Server, and, as I found later, is fixed on the client side. The steps to solve this problem are described below.

Connect to Printer

Windows cannot connect to the printer

Operation failed with error 0x00000057

If the driver of the network printer you are trying to connect is already install on the problem computer, try to remove it from the driver store manually. To do it, open the dialog box with the list of the print drivers installed locally and delete the driver of the printer you want to connect (both x64 and x86 versions).

printui.exe /s /t2

After you have removed the driver, try to connect the network printer again.

If it didn’t help or there was no driver in the client system, do the following.

We’ll need a computer, on which this printer is installed correctly and prints successfully. Start the Registry Editor on this computer and go to the following registry key:

Find the registry key with the name of the printer driver you want to install and export it in a Reg file.

Then find the value of the InfPath parameter in this key. In my example, it is C:\Windows\System32\DriverStore\FileRepository\prnhp002.inf_amd64_neutral_04d05d1f6a90ea24\prnhp002.inf

Go to C:\Windows\System32\DriverStore\FileRepository and find the name of the folder the registry parameter points to.

Now try to find this folder on the problem computer. It is most likely to be there, but it is empty. It indicates that the driver installation process was interrupt.

Edit the NTFS permissions for this folder (it is likely, you will have to become its owner) and add Full Control privileges for the group of local administrators.

Import the reg file to the problem computer and copy the contents of the driver folder from the normal computer to the problem one.

Restart the Print Spooler: net stop spooler & net start spooler

Try to connect the printer. The client should download and install the driver from the Print Server successfully.

If none of the solutions helped, go to C:\Windows\System32\DriverStore\, back up infpub.dat, and grant the group of local administrators Full Control permissions. Then try to install the network printer.