Several users with Windows 10 and usually after installing updates, cannot connect to a shared printer because of error "Windows cannot connect to the printer – Operation failed with error 0x00004005 or 0x0000011b".
The printer errors 0x00004005 & 0x0000011b with decryption "Operation Failed – Windows Cannot add/connect to Printer", occurs when you try to add a shared printer to Windows 10 that is shared on another computer running Windows 10 or Server 2016 or Server 2019.
To fix the problem, follow the instructions below:
Add the Shared Printer using a Local Port.
Another way to bypass the error 0x00004005 when installing a network printer on Windows 10, is to manually add the printer by using a local port.
1. Navigate to Control Panel > Devices and Printers.
2. Click Add a printer.
* Note: If the shared printer is already in the list, remove it before proceeding to re-add it.
3. At the next screen, click The printer that I want isn't listed.
4. Select Add a local printer or network printer with manual settings and click Next.
5. Click Create a new port and select Local Port from the drop-down menu. Click Next.
6. At the screen specify the port name in one of the following formats and click OK:*
\\ComputerName\SharedPrinterName
\\ComputerIPAdress\SharedPrinterName
Example:
a. If the computer name of the computer that shares the network printer is "Fin-03" and the printer's share name is "FinPrinter" then the port name is "\\Fin-03\FinPrinter"