Windows · Operating system
0x00004005

Windows error 0x00004005 - unspecified error adding a printer

This is Windows saying the operation failed without naming a reason. In printing it usually appears when connecting to a shared printer and the driver transfer or the connection is refused somewhere in the middle. Because the code is generic, you diagnose it by elimination rather than by looking it up.

Moderate Windows 11Windows 10Shared and network printers

What causes it

  • Point-and-print driver transfer from the server failed
  • A stale or duplicate queue for the same printer already exists locally
  • The spooler is in a bad state after an update
  • Permissions on the shared queue do not allow your account to connect
  • Security software is blocking the connection to the host

How to fix it, in order

Work down the list and stop when the printer recovers. The steps are ordered from most likely and least invasive to last resort.

  1. Restart the Print Spooler and clear the queue

    Press Windows+R, type services.msc, press Enter, stop Print Spooler, empty C:\Windows\System32\spool\PRINTERS, then start the service again. Generic failures very often clear here because the spooler is simply wedged. Try adding the printer immediately afterwards.

  2. Remove any existing entry for the same printer

    In Settings › Bluetooth & devices › Printers & scanners, delete every entry for that model, including ones marked with a duplicate suffix. Then use printmanagement.msc › Print Servers › your computer › Drivers to Remove driver package for it. Restart before trying again.

  3. Install the driver locally first

    Download and install the manufacturer's current driver for the exact model on your own PC, running the installer as administrator. With the driver present locally, connecting to the shared queue no longer needs to fetch files from the server, which is the step that most often fails silently.

  4. Add the printer by IP

    Go to Add device › Add manually › Add a printer using an IP address or hostname, set Device type to TCP/IP Device and enter the printer's own address from its network configuration page. A direct queue avoids the whole shared-printer path where the unspecified error lives.

  5. Check permissions on the shared queue

    On the host, open the printer's properties, go to the Security tab and confirm Everyone or your user has Print permission. A queue shared but not permitted will fail to connect with an unhelpful code rather than a clear access-denied message.

  6. Run the printer troubleshooter

    Open Settings › System › Troubleshoot › Other troubleshooters and run Printer. It checks service state, port validity and default assignment, and repairs several of the conditions that produce a generic 4005.

  7. Test with security software paused

    Temporarily disable third-party antivirus or firewall on the client, retry the connection, then re-enable it whatever the outcome. If it succeeds while paused, create an allowance for file and printer sharing instead of leaving protection off.

  8. Look in the PrintService log for the real error

    Open eventvwr.msc › Applications and Services Logs › Microsoft › Windows › PrintService › Admin, enable the log if it is not already on, and reproduce the failure. The log entry usually carries a more specific code that you can then act on directly.

Stopping it happening again

When it is not worth fixing yourself

If you would rather not work through this alone, a printer specialist can take a look with you on a screen-share and tell you honestly whether the machine is worth saving.

Frequently asked questions

What does 4005 actually mean?

It maps to a generic unspecified failure. Windows is admitting it does not have a more specific reason to give you, which is why the event log is worth checking.

Is this a hardware fault?

Very rarely. It almost always appears during the connect or driver stage, before the printer is involved at all.

Does adding by IP always work instead?

It works whenever the printer has its own network connection. A USB printer shared from another PC has to go through the share.

Questions & comments (0)

No comments yet. Describe your printer model, operating system and the exact message you see; comments appear after review.

Ask about this page

Your comment appears after our team approves it. Or sign in to post faster.