Printer error 0x00004005 in Windows 10 usually appears when you try to add or use a network printer, and it means Windows cannot connect to the printer’s shared port. The fix typically involves restarting the Print Spooler service, clearing the printer driver cache, or re-adding the printer with the correct port settings. Below are the exact steps to resolve it, along with background on why the error happens and how to avoid it in the future.
What Causes Error 0x00004005?
The error code 0x00004005 is a generic Windows networking error that translates to “Access denied” or “The operation failed.” In the context of printers, it usually occurs when:
- The Print Spooler service is stopped or hung.
- The printer driver is corrupted or incompatible with Windows 10.
- The printer port is misconfigured (e.g., using the wrong IP address or a stale port).
- Windows Firewall or third-party security software is blocking the printer connection.
- The printer is shared from another computer and the share permissions are incorrect.
This error is most common on network printers (Wi-Fi or Ethernet) and when connecting to a printer shared from another PC. It can also appear when you try to install a local printer using a TCP/IP port that no longer exists.
Before You Start: Quick Checks
Before diving into advanced fixes, verify these basics:
- Make sure the printer is powered on and connected to the same network as your PC.
- Check if the printer’s IP address has changed (you can print a network configuration page from the printer’s menu).
- If the printer is shared from another computer, ensure that computer is turned on and the printer is shared.
- Try pinging the printer’s IP address from your PC: open Command Prompt and type
ping <printer-IP>. If you get no reply, the printer is unreachable.
Fix 1: Restart the Print Spooler Service
The Print Spooler is a Windows service that manages all print jobs. If it’s stuck, you’ll often see error 0x00004005. To restart it:
- Press Windows + R, type
services.msc, and press Enter. - Scroll down to Print Spooler in the list.
- Right-click it and select Restart. If it’s already stopped, right-click and choose Start.
- Close the Services window and try adding the printer again.
If the service won’t start, you may need to clear the spooler cache (see Fix 2) or run a system file check (see Fix 5).
Fix 2: Clear the Printer Driver Cache
Corrupted print jobs or driver files in the spool folder can cause this error. Clearing the cache forces Windows to rebuild it:
- Open Services (as above) and stop the Print Spooler.
- Press Windows + R, type
%systemroot%\System32\spool\PRINTERS, and press Enter. - Delete all files inside that folder (you may need administrator permission).
- Go back to Services and start the Print Spooler.
- Try re-adding the printer.
This clears any stuck print jobs that might be blocking new connections.
Fix 3: Re-Add the Printer with the Correct Port
If the printer was previously installed and then the IP changed, the old port becomes invalid. Here’s how to re-add it properly:
- Open Settings > Devices > Printers & scanners.
- Click Add a printer or scanner and wait for Windows to find it. If it doesn’t appear, click The printer that I want isn’t listed.
- Select Add a printer using a TCP/IP address or hostname and click Next.
- Enter the printer’s current IP address and click Next. Windows will detect the port and install the driver.
- If the driver is not found, you may need to download the latest driver from the printer manufacturer’s website.
If the printer is shared from another PC, instead choose Select a shared printer by name and type the network path like \\ComputerName\PrinterShareName.
Fix 4: Adjust Firewall and Sharing Settings
Windows Firewall or third-party antivirus can block printer communication. To rule this out:
- Go to Control Panel > System and Security > Windows Defender Firewall > Allow an app or feature through Windows Defender Firewall.
- Make sure File and Printer Sharing is checked for both Private and Public networks.
- If you have third-party antivirus, temporarily disable its firewall (or add an exception for the printer) and test.
Also, if the printer is shared from another Windows PC, ensure that the sharing computer has Network discovery and File and printer sharing turned on in the Network and Sharing Center.
Fix 5: Run System File Checker and Update Drivers
Corrupted system files or outdated drivers can also trigger this error. To repair system files:
- Open Command Prompt as administrator (right-click Start > Windows Terminal (Admin) or Command Prompt (Admin)).
- Type
sfc /scannowand press Enter. Wait for the scan to finish. - If it finds issues but can’t fix them, run
DISM /Online /Cleanup-Image /RestoreHealth.
For drivers, go to the printer manufacturer’s website and download the latest Windows 10 driver. Uninstall the old driver from Settings > Apps or via Device Manager (under Printers), then install the new one.
Frequently Asked Questions
Does error 0x00004005 mean the printer is broken?
No, it’s almost always a Windows-side connection or permission issue. The printer itself is usually fine. The error means Windows couldn’t access the printer’s port or share, not that the printer hardware failed.
Can I fix this error without administrator rights?
Most fixes require administrator privileges, especially restarting the Print Spooler and clearing the cache. If you’re on a work or school computer, contact your IT administrator. On your own PC, you should have admin rights by default.
Why does this error happen on a USB printer?
It’s less common, but a USB printer can still show this error if the driver is corrupted or if the USB port has a power management issue. Try plugging the printer into a different USB port, and in Device Manager, uncheck “Allow the computer to turn off this device to save power” for the USB Root Hub.
Will reinstalling Windows fix the problem?
Usually not necessary. The fixes above resolve the vast majority of cases. Reinstalling Windows is a last resort and often overkill for a printer connectivity issue.
How do I prevent this error from happening again?
Keep your printer drivers updated, assign a static IP address to the printer (via its network settings), and avoid using the same port for multiple printers. Also, regularly clear the print queue if you have many print jobs.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix msmpeg2vdec.dll Errors in Windows
- How to Update Sonos App and Speakers
- Unlock iPad Without Apple ID: Is It Possible?
- iOS 18 WhatsApp Notifications Not Working? Fix
- Fix Windows Cannot Locate Suitable Printer Driver
- How to Group Text and Pictures in Word