Error Code 45 on Printer - 14 Tried and Tested Solutions

Reading time icon 13 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

Error Code 45 Printer

Error Code 45 on your printer can damage your productivity and stop you from printing important documents for work or school.

Luckily, I’ve discovered several reasons why printers on a Windows 10 PC might encounter this error. I’ve thoroughly tested these causes and their respective solutions and compiled all the working fixes for you. Keep reading to resolve your Windows 10 printer problems promptly.

And if you’re using a Windows 11 PC, rest assured that these troubleshooting tips will apply to you, too.

What Is Error Code 45 on Printer?

Error Code 45 usually shows up when a previously connected device isn’t plugged in anymore. So, if you try to send a print command or select a printer to configure it, you’ll get this message if it’s disconnected:

Currently, this hardware device is not connected to the computer. (Code 45)

To fix this problem, reconnect this hardware device to the computer. 
Error Code 45 Printer

This warning could mean any of the following:

  • The device is actually disconnected, no Wi-Fi or USB cable connection exists between the printer and the PC.
  • The printer might be powered off.
  • Operating system or Windows Registry files are faulty.
  • A recent Windows update might have gone wrong.
  • A recently installed third-party software is interfering with the printer driver.

How To Fix Error Code 45 on Printer

First, you should try these quick fixes that usually solve the issue:

  • Check if the printer is connected – Power on the printer using the dedicated button. Connect it via the USB or Ethernet cable and ensure that the other end of the cable is connected to the PC via USB ports or serial ports. For wireless printers, use the printer setup display to go to Home > Wi-Fi or Wireless Setup screen. Choose the correct Wi-Fi network from the list and enter the password to establish a connection.
  • Restart your printer and PC – Click on the Start Menu Windows flag on the PC. You should see the power button in the bottom left corner of the Start Menu dialog box. Click on it and choose Restart from the context menu. On the printer, press the power button to shut it down. After 10 seconds, press it again to turn it on.
  • Update Windows – Press Alt + I to bring up the Windows Settings app. Click on the Update & Security option. Then, click on any of these options: Resume updates, Download and install updates, or Check for updates. Wait for the process to complete and restart your PC.

If these didn’t work, try the following troubleshooting instructions in the order they appear to get your printer working again.

Disable and Then Re-enable the Device

If you know for a fact that the printer isn’t disconnected or powered off, then try these steps first:

  1. Click on the Start Menu icon located at the lower right corner of the Windows Desktop or Home Screen.
  2. Type Device.
  3. Click on the Device Manager tool in the Best match section.
start menu
  1. You should now see the Device Manager dialog box.
  2. Scroll down the list until you find headers like Printers or Print queues.
  3. Click on the small arrow to the left to expand its list of devices.
  4. Find the printer hardware name that isn’t working.
  5. Right-click and choose Disable device from the context menu.
disable device
  1. After a few minutes, repeat the steps again.
  2. But, this time choose Enable device.
enable device

Now, try to print your document again and see if the issue is fixed.

Try a Different USB Port

The USB port you’re using might be faulty or might work intermittently. In this case, follow these steps to fix the Error Code 45 printer issue:

  1. Disconnect the USB connector from the existing USB port.
  2. Plug it into another USB port at the back of the PC case.

Now, follow the steps mentioned in the first troubleshooting method. This will push the printer and Windows to sync up quickly.

Moreover, if you’ve been using a front USB port to connect the PC and printer, try a rear port instead. Front USB ports are connected to the mainboard through normal copper cables.

On the other hand, rear ones are embedded directly into the motherboard PCB so they’re often more durable and work faster.

don't use front usb

Restart Print Spooler Service

A temporary bug might be obstructing the Print Spooler service on the PC. Do the following to fix this:

  1. Click on the Start Menu flag and type Services.
  2. The Services tool should show up below the Best match section. Click on that.
services app
  1. In the Services dialog box, press P to quickly navigate the list.
  2. Find the Print Spooler service and right-click.
  3. Choose Restart from the context menu.
restart service
  1. The Service Control dialog will show up and refresh the Print Spooler services.

Test if you’re getting Error Code 45 with the printer now.

Download the Manufacturer’s Diagnostic Tool

Printer manufacturers like HP develop and publish dedicated troubleshooting software. These apps come with essential drivers and program packages to detect and troubleshoot errors including Error Code 45. For HP, it’s called the HP Print and Scan Doctor app. Here’s how it works:

  1. Download and install the HP Print and Scan Doctor app.
  2. The HP tool icon should show up on your Windows Desktop or Home Screen. Double-click on that to see the following screen:
hp print tool start
  1. Now, click the Start button to begin identifying your HP printer.
  2. The tool will show an appropriate thumbnail for the detected printer hardware.
  3. Click on that and then tap Next.
hp print tool choose
  1. The tool will first test the communication status with the printer.
  2. Then, it’ll identify and fix the problems automatically.
hp print tool fix
  1. You might get a prompt to print a test page a couple of times during the process.

If you don’t have an HP printer, no worries. Find below a list of brand-specific printer troubleshooting tools. They work similarly as the one I just described:

Disable Fast Startup

The Fast Startup feature often interferes with printer hardware drivers. You must disable this feature to check if this is the root cause of the Error Code 45 printer issue. Follow these steps:

  1. Press the Windows Key + R to open the Run dialog.
  2. Type powercfg.cpl and hit Enter.
run dialog
  1. Click “Choose what the power buttons do” from the left-hand side menu.
  2. If the “Turn on fast startup” option is greyed out, you’ll need to enable editing of these settings.
  3. Click on “Change settings that are currently unavailable”.
change settings
  1. Under “Shutdown settings”, uncheck the box for “Turn on fast startup (recommended)”.
  2. Click “Save changes” to apply the new settings.
disable fast startup
  1. Reboot your PC.

Now, see if you can print a test page with your printer. If you can, congratulations! You’ve fixed the issue.

Fix Wi-Fi Connectivity

If you’re facing Error Code 45 with a wireless printer that connects to Wi-Fi, do the following. However, this will only work if you know the Wi-Fi network name or its password.

Reset Wi-Fi Setup

  1. Power off the printer.
  2. Locate the Wi-Fi button or combination of buttons (Wi-Fi + Power button) on your printer’s control panel.
  3. Press and hold the Wi-Fi button or button combination (Wi-Fi + Power buttons) for 3 seconds to 10 seconds.
  4. Release the button(s) once the allotted time is up.
  5. The printer should restart automatically after the reset.

Re-Configure Wi-Fi

  1. Power on your printer.
  2. Make sure it’s in the Wi-Fi router’s range.
  3. Go to the network or wireless settings menu on your printer’s control panel.
  4. You might need to navigate through menus using buttons or a touchscreen.
  5. Then, look for options like “Wireless Setup Wizard” or “Wi-Fi Setup”.
Turn on your printer.

Make sure it is in the Wi-Fi router's range.

Go to the network or wireless settings menu on your printer's control panel.

You might need to navigate through menus using buttons or a touchscreen.

Then, look for options like "Wireless Setup Wizard" or "Wi-Fi Setup".

Now, select your Wi-Fi network name (SSID) from the list of available networks.

When prompted, enter your Wi-Fi password.

The printer should connect to your Wi-Fi network. 

You might see a confirmation on the screen or a status light indicating a successful connection.
  1. Now, select your Wi-Fi network name (SSID) from the list of available ones.
  2. When prompted, enter your Wi-Fi password.
  3. The printer should connect to your network.
  4. You might see a confirmation on the screen or a status light indicating a successful connection.

Fix Ethernet Connectivity

When your printer is in a network for shared usage, it uses an IP address to communicate with all the PCs in the network.

Any issue with this IP address allocation might prevent the printer from communicating with the PC.

Eventually, the Device Manager tool shows Error Code 45 because it thinks that the printer isn’t connected. So, you’ll need to re-establish the IP configuration to nullify any issue related to the network setup. Here’s how:

  1. Go to the Windows Start Menu and search for Printers & scanners.
  2. Select Add a printer or scanner.
  3. When the window opens, click on “The printer that I want isn’t listed.”
The printer that I want isn't listed
  1. Choose “Add a printer using an IP address or hostname.”
Add a printer using an IP address or hostname
  1. Click Next.
  2. Select TCP/IP Device from the Device type list.
Device type
  1. In the “Hostname or IP address” field, enter an IP address that isn’t already in use in your Ethernet network.
  2. Leave the Port name field blank unless you have a specific port number designated by your printer’s manual.
  3. Alternatively, the Windows OS might automatically use the IP address as the Port name.
  4. Check the box for “Query the printer and automatically select the driver to use.”
  5. Click Next.
  6. Windows OS will automatically set up the network configuration now.

Try printing a test page on the printer.

Update Printer Driver

  1. Open the Device Manager app.
  2. Find the printer that’s showing the error code within the Printer or Printer queues tree.
  3. Right-click on it and choose Update driver.
update driver 1
  1. On the dialog box that opens, click on the “Search automatically for drivers” option.
search drivers
  1. Device Manager should now install the latest printer driver from the manufacturers’ or Microsoft’s servers.
  2. If this does nothing, you might also want to click on the “Search for updated drivers on Windows Update” link.
search drivers on windows update

Once it’s done, reboot the PC and try printing a page.

An easier way to update drivers is to use a specialized tool such as PC HelpSoft Driver Updater. This software will allow you to scan for and automatically update any drivers in just a few minutes.

Run the Printer Troubleshooter

  1. Click on the Start Menu and type Troubleshoot.
  2. You should see the Troubleshoot settings option below Best match. Click on that.
Troubleshoot settings 1
  1. On the Troubleshoot dialog box, click on the Additional troubleshooters hyperlink.
Additional troubleshooters
  1. Click on the Printer option in the next dialog box.
  2. The menu will expand and you’ll see the Run the troubleshooter button. Click on that.
Run the troubleshooter
  1. On the Printer dialog box, choose the printer make and model that’s showing the error.
choose printer
  1. Now, the Microsoft Windows troubleshooter will look for issues and try to fix them.
  2. Follow on-screen instructions until the app shows that the issue has been fixed.

Use System File Checker (SFC) Scan

Try doing an SFC scan to find out if the Error Code 45 printer issue is caused by system file integrity problems:

  1. Open Command Prompt as an administrator.
  2. When prompted by User Account Control (UAC), click Yes.
  3. In the Command Prompt window, type the sfc /scannow command and press Enter.
Use System File Checker (SFC) Scan
  1. The SFC scan will start and may take some time to complete.
  2. The results will show you that Windows Resource Protection found…
    • …corrupt files and repaired them successfully.
    • …corrupt files but was unable to fix some of them.
    • …no integrity violations.
  3. If you see the second result, continue reading to perform a DISM scan.

Perform a DISM Scan

  1. Launch Command Prompt with elevated privileges.
  2. Enter the following command into the terminal and hit Enter:
DISM /Online /Cleanup-Image /ScanHealth
Perform a DISM Scan 1

If there’s indeed an issue with the system files, the terminal will show you the result that indicates you must follow the DISM Repair Process. Here’s how:

  1. In the terminal windows, enter the following command code:
DISM /Online /Cleanup-Image /RestoreHealth
  1. Hit Enter to initiate the system file-fixing process.

Fix Windows Registry

Sometimes, Windows Registry directory issues can cause printer errors. In such a case, you must restore the registry to its last known working configuration. If you’ve created a Windows Registry backup file, you can easily restore it with that.

If you didn’t, you can try a third-party Windows Registry repair tool like the Glary Utilities Pro app. Download and install it on your PC and follow these steps:

  1. Click on the Clean Up & Repair menu in the Glary app.
  2. Tap the Registry Repair button on the right side menu.
Registry Repair
  1. The tool will quickly scan the existing registry directory to check its status.
  2. Once the scanning is complete, click on the Repair your registry button.
Repair your registry
  1. Wait for the repair to complete.
repairing in progress

Restore Your PC to the Previous State

Uninstall Third-Party Apps

If you’re seeing Error Code 45 on your printer after installing a third-party app, do the following:

  1. Type Apps in the Start Menu and click on the Apps & features option.
  2. You should see all the installed services in the Apps & features dialog box.
  3. Scroll down until you find the one you’ve just installed. Before removing the app, back up your work first.
  4. Click on it to find the Uninstall button.
  5. Hit the Uninstall button to remove the app.
uninstall apps
  1. Restart the PC.

Rollback Windows Updates

If the error started popping up after a recent Windows Update event, you can uninstall those changes by following these steps:

  1. Press Windows + I to open the Settings app.
  2. Click on the Update & Security option at the bottom of the Settings app.
update and security
  1. Choose the View update history option in the Windows Update dialog.
view update history
  1. Click on the Uninstall updates link in the View update history button.
  2. A new dialog box will open showing all the recently installed Windows updates.
  3. Right-click on an item and hit the Uninstall button in the context menu.
uninstall an update
  1. Repeat the steps for the rest of the recent updates.
  2. Restart the PC.

Don’t forget to check if the error persists by printing a test page on your printer.

Use the System Restore Tool

If you’re unable to fix the error code by following any of the above-mentioned methods, try reverting the PC to the last known good configuration. Here’s how:

  1. Type Restore in the Start Menu and click on the Create a restore point option.
  2. The System Properties dialog box will open.
  3. Click on the System Restore button inside the System Protection tab.
System restore
  1. You should now see the System Restore wizard. Click Next.
  2. The next screen will list all the available system restore points for your PC.
  3. Choose the one closest to the date when you last used the printer.
  4. Click Next.
Choose the one close to the date
  1. Choose Finish on the next screen.
  2. The System Restore tool will start the process.
  3. Follow the on-screen instructions for it to complete.

Contact Technical Support

If nothing else works, contact the technical support helpdesk of the printer manufacturer for advanced assistance on the matter. Find below the help and support link for all major printer brands:

The Error Code 45 printer issue shouldn’t stop you from being productive at home, school, or work. Just follow this troubleshooting guide to sort this out. Additionally, if you’re encountering the same error on your disk partition, I’ve got you covered as well.

If the article helped you or you’d like to leave feedback, comment below. If you know a better way to fix this problem, don’t hesitate to mention that in your comment.

More about the topics: Printer, windows 10, Windows 11

User forum

0 messages