How to Fix Code 45 in Windows 11

Applies to Windows 11
Quick answer
To fix Code 45 in Windows 11, check whether that device should be connected now. Reconnect and power it, then look for the live entry in Device Manager. A faded record for a device you unplugged can stay there.
What Does Code 45 Mean in Windows 11?
The complete message is usually “Currently, this hardware device is not connected to the computer. (Code 45)”. Microsoft calls the underlying Plug and Play condition CM_PROB_PHANTOM. In plain language, Windows remembers a device entry but does not consider that instance present now. A phantom or non-present device is a saved device record for hardware that is not currently detected.
That can be completely normal. A USB drive, docking station, Bluetooth dongle, phone, printer, game controller or monitor can leave a gray entry after it is disconnected. Selecting View → Show hidden devices makes non-present entries easier to see. Microsoft’s hidden-device documentation explains that removed hardware can remain as a non-present record, and Microsoft’s Code 45 reference says the device is not present.

A faded entry is not the same as a disabled device. It is also different from Code 10, where Windows sees a device but cannot start it, Code 28, where a driver is not installed, and Code 43, where a detected device reported a problem. Read the General → Device status box instead of assuming every warning needs the same fix.
Confirm That You Are Looking at the Right Device
Before changing anything, identify the device instance that is actually connected. This prevents a common mistake: uninstalling an old gray record while the live accessory appears under a different name or in another Device Manager category.
- Open Device Manager by right-clicking Start and choosing Device Manager. Select View → Show hidden devices.
- Open the faded entry’s Properties → General page. Record the exact name, category, location and complete Device status. If Details → Hardware Ids is available, save the first full ID. Do not remove the entry yet.
- Turn off Show hidden devices. For an external accessory that is safe to disconnect, unplug it, wait several seconds, and reconnect it through one known-working path. Use a direct port when possible.
- Watch the relevant category and Other devices. Select Action → Scan for hardware changes once if Device Manager does not refresh. A new solid entry is the live device to diagnose.
- Compare the live entry with the old record. Use the category, location, hardware ID and the device’s actual function. The live device can use a different friendly name after Windows identifies it.

If you cannot identify the live entry, use our unknown device hardware ID guide. It explains how PCI, USB and ACPI identifiers point to different support pages. Do not search only the words “Code 45 driver”; the error does not identify the hardware model.
| What you see | What it means | Best next test |
|---|---|---|
| Only a faded entry after Show hidden devices | A previously installed device is not present | If you no longer use it, leave it alone; if you need it, reconnect the real hardware |
| A solid entry appears and says the device works | Windows detects active hardware | Test the device's real function; ignore an unmatched historical entry |
| A solid entry appears with Code 10, 28, 43 or another status | The hardware is present, but the live entry has a different problem | Record that exact code and follow the repair for it |
| No entry appears after a safe direct connection test | Windows is not detecting that hardware path | Check power, cable, port, receiver, firmware or hardware before reinstalling a driver |
Two entries have the same name. Which one should you repair?
The Hardware Ids field helps identify a make or model. The Device instance path identifies one Windows device entry on this PC. Two entries can have the same hardware ID and different instance paths. Compare the paths and then watch which entry changes when you reconnect the physical device. Microsoft documents how Windows identifies each device instance.

- Record the old entry. With View → Show hidden devices enabled, open the faded device’s properties and select Details → Device instance path. Keep its full path and Code 45 message in private notes.
- Watch a controlled reconnect. If the accessory can safely be disconnected, reconnect it through a known-good direct port. Copy the path and status from the entry that changes. Windows may reuse the old instance or show a distinct live entry. If no live entry appears, continue with the external detection checks.
- Verify the function you need. If the active entry works, use the actual accessory and leave the old record in place. If the live entry shows an error, record that code and follow the driver and status guidance for the connected device.
Example. A USB Ethernet adapter previously used through a dock now connects directly. Device Manager shows one active network adapter and one faded entry with the same name. They have different instance paths. Open a page over the wired connection to verify the active adapter. If the wired connection works and only the old entry reports Code 45, leave the working driver in place.
Fix Code 45 for an External USB or Removable Device
For an external device, the fastest useful test is a controlled connection test. Save open work first. Eject storage devices normally when Windows still detects them. Do not disconnect a device that is actively writing data, updating firmware or supplying power to another system. If the live entry changes to a descriptor error or Code 43, use the USB device not recognized troubleshooting path to separate connection, power, storage and driver failures.
- Turn on the device and any separate power supply. Check a receiver, hardware wireless switch, battery and charging state where applicable.
- Inspect the plug and port without inserting metal or using liquid. Stop if a connector is loose, bent, scorched or unusually hot.
- Bypass a dock, extension or unpowered hub. Connect the accessory directly to a compatible port. On a desktop, a rear motherboard port is a useful comparison with a front-panel port.
- If the cable is removable, use a known-working data cable of the correct type. Some USB cables charge a device but do not carry the data Windows needs to enumerate it.
- Try another compatible port. Keep the test simple by disconnecting unrelated USB accessories that are not required for input or safety.
- When safe and practical, test the same accessory and cable on another computer. If the device fails on two systems, the evidence points toward the accessory, cable or power supply rather than the Windows driver on the first PC.
A USB Bluetooth adapter deserves one extra check because a PC may also have a built-in Bluetooth radio. Our USB Bluetooth dongle driver guide shows how to unplug and reconnect the dongle, identify which radio changes, and avoid repairing the wrong adapter.
If the Code 45 Device Is a USB Drive
Code 45 means the saved device instance is absent. It does not tell you whether the files on a drive are healthy. If the drive becomes visible in Disk Management but not File Explorer, that is no longer a Code 45-only problem. Record the disk’s size, status and partitions. Assigning a missing drive letter can be reasonable, but do not initialize or format a drive that contains files. Those actions can destroy metadata or make recovery harder.
If the drive clicks, disconnects repeatedly, becomes extremely slow or reports the wrong capacity, stop repetitive reconnect tests and protect the data. A backup or professional recovery decision matters more than making the old Device Manager entry disappear.
What If Wi-Fi, Bluetooth, a Camera or Touchpad Shows Code 45?
Built-in hardware cannot be “reconnected” with a cable from outside the PC, but Code 45 still means Windows considers that device absent. Start with reversible checks that match the exact computer model.
- Restart Windows, then perform one full shutdown and power-on if the problem began after sleep, a dock change or a firmware update. A restart and a shutdown are not always the same path when Fast Startup is enabled.
- Check the PC maker’s keyboard shortcut, hardware switch or firmware setting for the missing radio, camera or touchpad. Use the manual for the exact model; do not copy an unrelated BIOS setting from another brand.
- Open the manufacturer’s support page for the exact PC model. Review any chipset, platform, serial I/O, firmware and device-specific prerequisites. A generic component driver cannot correct a device disabled or missing at the firmware or hardware layer.
- If the PC is under warranty, or the part is internal and not intended for customer service, contact the manufacturer before opening it. Reseating a card or cable can require anti-static precautions, disassembly instructions and a BitLocker recovery key.
Example 1 — harmless history: A laptop was previously connected to a USB-C dock. After the dock is removed, Device Manager shows a faded dock Ethernet adapter with Code 45 only when hidden devices are shown. The laptop’s current Wi-Fi and built-in Ethernet work. That gray record is expected; reconnect the dock only if you need to test it.
Example 2 — real missing hardware: A laptop’s built-in Wi-Fi disappears, and the old adapter appears faded with Code 45. Reinstalling the wireless package repeatedly does not create a live device. The useful next evidence is whether the adapter is enabled in the exact model’s firmware, whether the PC maker requires a chipset or firmware prerequisite, and whether hardware service is needed.
When Does Reinstalling a Driver Help Code 45?
A driver can help after Windows detects a live device. If reconnecting the hardware produces a solid entry with Code 28, an Unknown device name or a model that uses a vendor package, match the full hardware ID and the exact computer or accessory model. Prefer Windows Update’s applicable driver offer or the manufacturer’s official support page. Keep driver-signature checks enabled.
If the live entry has Code 10, Code 28, Code 43 or another status, record it before changing the driver. That new code describes the active problem. Follow Microsoft’s Device Manager error-code guidance and the device maker’s model-specific instructions.
A driver reinstall is unlikely to restore hardware that never appears as a live entry. System File Checker, DISM, registry cleaners and broad “update all drivers” tools do not prove that a missing port, cable, receiver, power supply or internal component is present. Avoid deleting every USB controller or every faded device as a first step; that expands the problem without identifying the target.
Verify the Fix and Keep a Recovery Path

- Open the live device’s Properties → General page. Confirm the current status. If it says the device is working properly, continue with a functional test.
- Test the exact job: copy a noncritical file to and from a removable drive, print a test page, pair one accessory, use the webcam preview, play and record audio, or reconnect to Wi-Fi after a restart.
- Open the Driver tab and record the provider, date and version only after Windows sees the device. This gives you a baseline if a later package makes the result worse.
- Restart once if the manufacturer’s installer or firmware instructions require it. Test the same function again. A repair that works only until restart is not verified.
- If a new driver creates a problem and Roll Back Driver is available for that same live entry, use it. Otherwise reinstall the last supported package from the exact PC or device maker. Restore the original cable, port or radio configuration if your controlled test made things worse.
If Code 45 remains only on an unused faded record while the live device works, stop. The objective is working hardware, not an empty hidden-device list. If no live entry appears through a known-good path, document the tests and contact the PC or device maker. For an internal device, include the exact model, firmware version, when it disappeared and whether it appears in the manufacturer’s hardware diagnostics.
Code 45 Questions
Should I uninstall a faded Code 45 device?
Usually not. If it belongs to hardware you intentionally unplugged and no current function is broken, the entry is a historical record. Removing it is unnecessary. If you reconnect the same hardware later, Windows can create or reuse the appropriate device instance.
Why is the device visible only after I choose Show hidden devices?
Show hidden devices can reveal non-present devices. A gray icon often means Windows remembers the device but does not detect it now. Confirm the exact status in Properties and compare it with any live entry that appears when you reconnect the hardware.
Can Code 45 be caused by a bad driver?
The code itself reports absence, not driver corruption. A driver issue can exist after hardware is detected, but first prove that Windows sees the live device. A live Code 28 or Code 10 entry is stronger driver evidence than an old faded Code 45 entry.
Will SFC or DISM fix Code 45?
Not when the real cause is an unplugged accessory, failed cable, unpowered hub, disabled firmware device or hardware fault. Those tools repair certain Windows system files; they do not reconnect absent hardware. Use them only when separate evidence points to Windows component corruption.
How do I know the repair worked?
The correct live entry should appear without Code 45, its status should match the actual condition, and the device should complete its real task after a restart. A warning disappearing from one gray record is not enough if the hardware still does not work.
Official References
- Microsoft Support: Error codes in Device Manager in Windows
- Microsoft Learn: Code 45 — CM_PROB_PHANTOM
- Microsoft Learn: Viewing hidden devices
The troubleshooting examples above are diagnostic illustrations. We verified the decision points against current Microsoft documentation and did not run them on every physical device model.