If you are using a local network that is shared by a printer it may be possible you may get the error message “Windows cannot connect to the Printer. The operation failed with error 0x000000XX” while trying to add the shared printer to your computer using Add Printer feature. The probable reason for this error is that the Windows OS search the file named Mscms.dll in a wrong location that is in the subfolder, except the subfolder windows\system32.
To eliminate the error message, first, you need to examine the setup status of the network printer. Is the setup is done with a LAN port or the printing machine is connected to an additional machine and is shared on the network? According to that, you need to troubleshoot the concern in a specific way. For that, you could make use of the below-stated troubleshooting steps as an overview.
How to Solve Windows Cannot Connect to the Printer Error
So, now let’s check the solutions for Windows cannot connect to the Printer error.
Solution 1: Create A New Local Port
With the help of the Windows search field navigate to the Control Panel window and proceed with the Devices and Printers option.
Under this window, click on the Add a printer option. Additionally, you need to confirm that you have Administrator rights of your computer.
Proceed with “Add a local printer”> “Create a new port”. Further, ensure that the “Type of port” option is set as “Local Port”.
In case, you got a new window with a place for the port name, then enter the detail in the following format:
\\IP address or the Computer Name\Printer’s Name
Example: \\192.168.1.130\HP LaserJet P2050 Series PCL 6
Select OK> Next.
If you don’t understand the IP Address of the computer in which the printer is bodily linked to and shared from, Hold Windows Key and Press R. Now type cmd within the run conversation and press enter. Type ipconfig inside the black window and press enter. Look for IPv4 Address for the computer’s IP in the black window. Scroll up when you have to.
Select your printer model from the directory site to install the printer driver. Click Next. If you have a disk, place the disk, click “Have Disk” and browse to the chauffeur’s place in the disk. Click OK. Type in a name for your new printer. Click Next. Print a test web page to check its connection. Lastly, click on Finish.
Solution 2: Copy “mscms.dll”
- Using the File Explorer search menu open the location: C:\Windows\system32. Here, you will get a file named mscms.dll, open it.
- Took a copy of the file from the following locations:
- C:\windows\system32\spool\drivers\x64\3\ if you are using 64-bit windows
- C:\windows\system32\spool\drivers\w32x86\3\ if you are using 32-bit windows
- Retry to connect your printer.
- Hopefully, this solution will work great for you in solving the “Windows cannot connect to the Printer” matter.
Solution 3: Restart the Print Spooler service
- Press Windows along with the letter R key, Win+R= Run box.
- After that, type services.msc and also hit on OK.
- Find Print Spooler solution inside the listing and double-click on it.
- See to it the Startup type is set to Automatic and additionally the service is running, after that click Stop and after that another time click on Start to restart the Print Spooler.
- Click Apply adhered to by means of OKAY.
- Afterward, once more try and upload the printer as well as see if you’re able to Repair Windows Can not Connect to the Printer issue.
Solution 4: Remove Unnecessary Printer Drivers
Installation of the preceding printer can keep away from the printer spooler from including brand-new printers. To eliminate them, press Windows + R. Also, ensure that you can do the administrator changes, that is you have that right.
In the Run search field type the keyword printmanagement.msc> OK. Now, you need to double-click on the option “All Drivers”. Now, remove all the unnecessary printer drivers from the available options. Reinstall the current printer driver and then hopefully, the error will not exist anymore.