0xPC Error Codes Look up a code
One safety rule: if a message shows a phone number to call, it is a scam: Microsoft never does that. Check any warning in 5 questions.

Home › Sound, Wi-Fi, Camera and Devices › Code 45 This Hardware Device Is Not Connected

Code 45Devices

Code 45 This Hardware Device Is Not Connected

By Editorial Team · · 8 min read ✓ Checked against Microsoft documentation

In plain English

If you saw Code 45 in Device Manager, Windows usually still has a record of the hardware, but it cannot see that device connected right now. If you want the wider devices category after this fix, start with the full device problems guide.

First safe step

If the device was unplugged on purpose, do nothing. Code 45 clears on its own when you reconnect the hardware. If the device should be connected, unplug it, wait a few seconds, then plug it back in firmly and check Device Manager again.

Try these in order, cheapest first

Reconnect first. Clean up only the entries for hardware you no longer use.

1Reconnect firstFree
2Show hidden devicesFree
3Remove the ghost entryFree
4Still not back
5What not to do
6Quick recap

If you saw Code 45 in Device Manager, Windows usually still has a record of the hardware, but it cannot see that device connected right now. If you want the wider devices category after this fix, start with the full device problems guide.

This is different from a missing driver problem. Code 45 is often about a stale or hidden device entry, sometimes called a ghost or phantom device, so the fix is usually to show hidden devices, remove the old entry, and let Windows check again.

That is why this page does not send you straight to driver-install steps like the Code 28 driver-not-installed fix. If your missing hardware is tied to a USB problem or a vanished wireless adapter, you may also need the USB device error 43 guide or the missing Wi-Fi icon troubleshooting page.

What Device Manager code 45 means

Device Manager Code 45 means Windows still has a record of the device, but it cannot see that hardware connected right now. In plain English, the entry is there, but the actual device is missing, unplugged, turned off, loose, or no longer being detected.

This is different from a driver-missing problem. If Windows says the device is present but needs software, that points more toward the Code 28 driver-not-installed fix. Code 45 is about connection and detection first, not about grabbing random drivers from the web.

Microsoft’s own guidance for Code 45 is short: no resolution is necessary. The code only reports that the device is disconnected, and it clears on its own when you reconnect the hardware. The cleanup steps below are for the case where the device is connected and Code 45 still shows, or for clearing entries for hardware you no longer use.

A lot of the time, Windows is showing an old device entry that stayed behind after a cable was removed, a USB device was moved, or a part stopped responding. That is why the usual fix path for Code 45 is to reconnect the hardware or clean up the stale entry so Windows can look again.

If your problem is tied to one device type, the next checks may overlap with pages such as the USB device error 43 guide, the missing Wi-Fi icon troubleshooting page, or Windows Hello problems. If you searched by number and want to compare it with other Windows messages, you can also check the error code index.

1 First checks before you clean up Device Manager Free

Before you change anything in Device Manager, do the simple checks once. Unplug the device, wait a few seconds, then plug it back in firmly. If it uses USB, try a different port on the PC and skip any loose front-panel port or unpowered hub for now.

If the device has its own battery, charger, or power switch, check that too. A wireless keyboard, headset, webcam, dock, or external drive can look missing in Windows when it is simply off, flat, or not getting enough power through the cable or dock.

Restart the PC one time after reconnecting the device. That gives Windows a fresh chance to detect it. If the problem is with a USB item that keeps disconnecting or shows a different code after reconnecting, see the the USB device error 43 guide.

If the missing hardware is your wireless adapter and the whole network option has vanished, the problem may be wider than one stale device entry. In that case, check the missing Wi-Fi icon troubleshooting page. If Windows now shows a driver-not-installed message instead of this problem, follow the Code 28 driver-not-installed fix.

✓ Device back? You can stop here.

2 Show hidden devices and find the ghost entry Free

  1. Open Device Manager. In Windows 11, right-click the Start menu and choose Device Manager. In Windows 10, you can do the same, or press Windows key + X and pick it from the menu.
  2. In Device Manager, select View and then Show hidden devices. This makes old or disconnected entries easier to spot. A ghost entry is usually faded or slightly dim compared with hardware Windows can see right now.
  3. Look in the category where your device should appear, such as Network adapters, Bluetooth, Sound, video and game controllers, or Universal Serial Bus controllers. If your problem has started to look more like a USB failure than a disconnected record, use the <span>the USB device error 43 guide</span> instead. If the device is a wireless adapter and it is missing from Windows more broadly, the <span>the missing Wi-Fi icon troubleshooting page</span> is a better match.

Before you remove anything, match the faded entry to the real device as closely as you can. Check the device name, open its properties to review the location or hardware details, and look for duplicates where one entry is normal and another is faded. If the device is present but says the drivers are not installed, that is a different problem, and <span>the Code 28 driver-not-installed fix</span> is the right next step.

3 Remove the phantom device and rescan for hardware changes Free

Once you are sure you have the old faded entry, right-click it in Device Manager and choose 'Uninstall device;'. If you see a box that offers to delete driver software, leave that unchecked unless you are removing a device you no longer use at all. For device manager code 45, the safe goal is to clear the stale record so Windows can look for the hardware again.

After the uninstall finishes, select the computer name at the top of Device Manager, then open the Action menu and choose 'Scan for hardware changes;'. You can also restart the PC if you prefer. If the device is really connected and responding, Windows should create a fresh entry and try to detect it again.

If the device comes back immediately with Code 45 again, Windows still cannot see the hardware itself. That usually points back to a connection, power, dock, slot, or failing device problem, not a missing driver. If the new entry now says Code 28 instead, move to the Code 28 driver-not-installed fix because the problem has changed.

If Windows creates a new entry with a different USB warning, the better match may be the USB device error 43 guide. If the hardware that vanished is your wireless adapter and the whole network control is gone, check the missing Wi-Fi icon troubleshooting page. If nothing new appears after the scan, the cleanup worked, but Windows still is not detecting the hardware.

4 When the device still does not come back

If the device is external and it still does not return after the cleanup, test the simple hardware path again with different parts. Try another USB port, another cable, another adapter, or a different power source if the device uses one. A bad cable or weak power brick can leave Windows showing Device Manager code 45 even after you remove the ghost entry.

If you can, connect the same device to another PC. If it works there, your Windows install, port, dock, or hub is the more likely problem. If it fails on a second computer too, the device itself may be dead or not getting power.

This is also the point to stop guessing with drivers. If Windows starts seeing the hardware again but now says the drivers are missing, use the Code 28 driver-not-installed fix. If the device comes back as a USB device with a warning instead, the USB device error 43 guide is the better match.

If the device never appears anywhere, even on another PC, replacement or the device maker's support is usually the next step. For a vanished wireless adapter, the symptoms may fit the missing Wi-Fi icon troubleshooting page better than a code 45 cleanup.

5 What not to do for code 45

Don't start with driver updater tools, registry cleaners, or random driver download sites. Code 45 usually does not mean Windows needs a brand-new driver. It means the hardware is not being detected right now, or Windows is still holding on to an old device entry.

For the same reason, don't treat this like a missing-driver problem unless the code has actually changed. If the device now shows Code 28, use the Code 28 driver-not-installed fix instead of staying on the Code 45 path.

Don't force extra fixes just because the device is still absent after cleanup. If Windows now reports a USB-specific warning, the USB device error 43 guide is a better match. If a wireless adapter has vanished from the taskbar and settings, try the missing Wi-Fi icon troubleshooting page.

If you are not sure which code you are seeing now, check the exact number in Device Manager before you do anything else. The right next step depends on the current code, not the one you started with.

6 Quick recap and next step

If you’ve made it this far, the order is simple: reconnect the device, turn on hidden devices, remove the ghost entry, then rescan. That is the normal Code 45 path when Windows still remembers the device but it is absent, unplugged, or stale in Device Manager.

If the code still comes back, check the device on another computer so you can tell whether the problem is the PC or the hardware itself. If you need a broader map of Windows fixes, start with the full device problems guide or the error code index.

Frequently asked questions

Does Code 45 mean my device is broken?

Not always. Code 45 means Windows cannot detect the device right now. A loose plug, a dead cable, no power, or a failed device can all cause it, so test the hardware on another port or computer before you decide it is broken.

Should I delete the driver when I remove the faded entry?

Usually no. Remove the stale entry in Device Manager, then let Windows look for the hardware again. Keep the driver in place unless the entry comes back with a different code that points to a driver problem.

Will installing a new driver fix Code 45?

No. A new driver cannot make Windows detect hardware that is not connected. Fix the connection first, and only look for a driver if the device returns with Code 28.

The short version

If the entry stays faded after a rescan, trust what Device Manager is telling you: Windows can see the old record, but it cannot see the hardware. That points to a plug, a cable, power, or a device that has stopped working.

Stop there if a second computer also misses it, and replace the part or ask its maker for help instead of trying more downloads. If a different code shows up, follow that code's fix, because Code 45 has done its job once it tells you the device is not connected.

Different number on screen?

Type it exactly as it appears and get the plain-English answer.

Look up a code

Pop-up telling you to call?

That is a scam. Microsoft never asks you to phone a number.

Check it in 5 questions