Device Manager Code 45 — Hardware Device Is Not Connected
| Code | Code 45 |
|---|---|
| Applies to | Windows device (any brand) |
| Severity | User-fixable |
| Most common cause | The 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
- The device is simply unplugged or powered off right now (the normal, harmless case)
- You are looking at a greyed 'ghost' entry for a device that is not attached
- The cable failed or the port stopped working, so a connected device reads as disconnected
How to fix it — step by step
- 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.
- 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.
- 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
- Code 41 — Windows successfully loaded the driver but cannot find the hardware device — the driver is ready and the device is absent.
- Code 24 — This device is not present, is not working properly, or does not have all its drivers installed — one of those three is true.
- Code 47 — Windows cannot use this device because it has been prepared for safe removal but has not been removed — it is parked after an eject.
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.