Device Manager Code 45 — Hardware Device Is Not Connected

Short answer: Currently, this hardware device is not connected to the computer — an informational status, not a fault.
CodeCode 45
Applies toWindows device (any brand)
SeverityUser-fixable
Most common causeThe device is simply unplugged or powered off right now (the normal, harmless case)

What this code means

Code 45: 'Currently, this hardware device is not connected to the computer.' It is barely an error at all — Device Manager keeps a record of every device ever attached, and Code 45 is simply the status of the ones that are not here right now. With View → Show hidden devices on, your PC's whole history shows Code 45.

The only time it needs action is when the device is sitting in front of you, plugged in — then 'not connected' is real information about the cable, the port, or the device's power.

Likely causes

How to fix it — step by step

  1. Reconnect the device

    Plug the device in, power it on, and watch Device Manager — the entry should light up and the code clear. Use Action → Scan for hardware changes if it does not refresh.

  2. If it's plugged in but still 45, change cable and port

    If the device is connected but still Code 45, change the cable and use a port directly on the PC. A dead cable makes a healthy device look disconnected.

  3. Clean up ghosts if you want

    Entries for devices you no longer own are harmless. If they bother you, right-click → Uninstall device removes the ghost; it returns automatically if you ever reconnect the hardware.

If the code comes back after these steps, treat it as a hardware or service fault rather than a settings problem — that is the honest end of software troubleshooting for this code.

Is it a driver problem?

No. No. Code 45 is informational — Windows is telling you the device is not here. Drivers only matter once the device is connected and detected again.

Get the official driver or support for your device

If a fix above points you at a driver, get it from the manufacturer only:

Microsoft Support — Update drivers manually in Windows Opens support.microsoft.com

Printer, laptop or PC drivers by brand: HP · Dell · Lenovo · Acer · ASUS · Canon · Epson · Brother · Samsung printers

Related errors

Questions people ask about Code 45

Is Code 45 an error I need to fix?

No. Code 45 simply means the device is not currently connected — Device Manager keeps an entry for every device it has ever seen, and disconnected ones show Code 45 (they appear greyed when you enable 'Show hidden devices'). It only matters if the device IS plugged in and still shows 45: then try another cable and port.

Verified 2026-11-28 against: support.microsoft.com · www.windowscentral.com. Meanings follow the manufacturers' and Microsoft's published documentation; where a code's meaning depends on the exact model, the page says so.