Few things are more frustrating than seeing your device suddenly display an error that makes no sense. You glance at Device Manager and there it is: Code 45 with a message saying your hardware device is not connected, even though it is sitting right there on your desk. This perplexing error has ruined countless work sessions and sent users down rabbit holes of troubleshooting that go nowhere.
The good news is that Code 45 is one of the more solvable Device Manager errors you can encounter. Whether you are dealing with a Bluetooth mouse that will not respond, a network adapter that vanished after a Windows update, or a USB printer that Windows insists is disconnected, the fix is usually simpler than it appears. This guide covers every solution from the quickest reconnections to advanced system repairs, so you can get your hardware working again.
Key Takeaways
- Code 45 means Windows detects a hardware device as disconnected, even when it should be connected
- Most Code 45 errors stem from driver problems, physical connection failures, or software conflicts after updates
- Quick fixes like reconnecting devices and restarting your PC resolve the majority of cases
- The error affects many device types including Bluetooth peripherals, USB accessories, network adapters, and audio equipment
- Advanced tools like SFC and DISM scans can repair underlying system issues causing persistent Code 45 errors
What is Code 45 Error?
Code 45 is a specific error code that appears in Windows Device Manager when the operating system cannot communicate with a hardware device that should be present. The full message typically reads: “Currently, this hardware device is not connected to the computer. (Code 45) To fix this problem, reconnect this hardware device to the computer.”
Despite the message asking you to physically reconnect the device, Code 45 often persists even when the hardware is firmly plugged in. This happens because the error is usually a software or driver communication problem rather than an actual physical disconnection. Windows is essentially saying it cannot see the device through its driver interface, regardless of whether the cable is actually connected.
This error can affect virtually any hardware category in Windows:
- Bluetooth devices including mice, keyboards, headphones, and game controllers
- USB devices such as printers, external hard drives, webcams, and flash drives
- Network adapters for both Wi-Fi and Ethernet connections
- Audio devices including sound cards, microphones, and speakers
- Graphics cards and GPU components
- Storage controllers and disk drives
The error commonly appears after Windows updates change driver configurations, when you move a device to a different port, or when driver files become corrupted for any reason. Understanding that this is primarily a communication issue rather than a physical one helps you approach the fix correctly.
Why Does Your Device Show Code 45?
Several underlying issues can trigger Code 45 to appear in Device Manager. Identifying the root cause helps you choose the most effective solution:
Driver Problems: Outdated, corrupted, or incompatible device drivers represent the most frequent cause of Code 45. When driver files become damaged or do not match the current Windows version, the communication channel between Windows and your hardware breaks down entirely.
Physical Connection Failures: While the device may appear connected, loose cables, worn connectors, faulty USB ports, or damaged receivers can prevent proper data transmission. Even wireless devices have physical components that can fail, such as USB Bluetooth dongles or wireless receivers.
Software Conflicts: Other programs or services running on your computer can interfere with device detection. This interference commonly occurs after installing new software, particularly security tools, system utilities, or virtual machine applications that claim hardware resources.
Windows Update Changes: Recent Windows updates frequently modify driver frameworks and system files. If a Windows update changes related system files, previously working devices may suddenly appear with Code 45 until drivers are refreshed or rolled back.
Hardware Failure: In limited cases, the device itself may be malfunctioning. USB ports can fail, Bluetooth adapters can burn out, and network cards can stop working entirely. If software fixes do not resolve the issue, testing the device on another computer helps determine if hardware replacement is necessary.
If a Windows update triggered the problem, you might also encounter related errors like Windows Update Error 0x80070005 alongside Code 45. Addressing both issues may be necessary for full resolution.
How to Fix Code 45: Basic Solutions
Start with these straightforward solutions before progressing to more complex repairs. Most Code 45 errors resolve at this level without needing advanced troubleshooting.
Fix 1: Reconnect the Hardware Device
The error message itself suggests reconnecting the device. Follow these steps carefully for the best chance of success:
- Completely disconnect the device from your computer, removing all cables and receivers
- Wait 15-30 seconds to allow the system to clear cached connection data
- Inspect the connection port for debris, damage, or bent pins before reconnecting
- Reconnect firmly to the same port, ensuring a secure physical connection
- Check Device Manager to see if the error clears automatically
For wireless Bluetooth devices, turn the device completely off, wait ten seconds, then turn it back on and place it in pairing mode. If the device has a USB dongle, try connecting the dongle to a different USB port after removing the paired connection through Windows Settings.
Fix 2: Check Physical Connections and Cables
Physical inspection often reveals problems that software cannot detect:
- Examine all cables for visible damage, fraying, or bent connectors
- Try the device on a different USB port to rule out a specific port failure
- Test the device on another computer to determine if the problem is the device or your system
- Replace the cable with a known-good cable if one is available
- For wireless devices, check that batteries are charged and the device is within proper range of the receiver
Reddit users have reported that network adapter Code 45 sometimes resolves simply by disabling the adapter in Device Manager, waiting thirty seconds, and re-enabling it. This refreshes the connection without requiring a full system restart.
Fix 3: Restart Your Computer
Never underestimate a simple restart, which clears temporary glitches and refreshes device connections:
- Save all work and close every open application
- Select Start Menu and click the power icon
- Choose Restart rather than Shut Down for a complete refresh
- Wait for Windows to fully boot and load all services
- Open Device Manager and check whether the Code 45 error persists
A restart resets device drivers, clears cached data, and reinitializes hardware detection processes. Many users find that their Code 45 errors disappear after a single restart without any additional troubleshooting.
How to Reinstall Drivers for Code 45 Error
When basic solutions do not resolve the issue, reinstalling device drivers is often the definitive fix. This process removes the corrupted driver files and allows Windows to install fresh copies.
Uninstall the Device in Device Manager
Removing the device driver completely forces Windows to recognize the hardware fresh:
- Press Windows key + X and select Device Manager from the menu
- Locate the device showing the Code 45 error, which typically displays a yellow warning icon
- Right-click the device and choose Uninstall device from the context menu
- Tick the box labeled “Delete the driver software for this device” when prompted
- Click Uninstall and wait for the process to complete
Scan for Hardware Changes
After uninstalling, Windows needs to rediscover and reinstall the device:
- In Device Manager, click Action in the top menu bar
- Select Scan for hardware changes from the dropdown menu
- Allow Windows to detect the device and install generic drivers
- Restart your computer to ensure the new driver loads properly on startup
Windows will install a baseline driver that should at least recognize the hardware. For full functionality, you may need to install manufacturer-specific drivers from the device maker’s website.
Update Drivers Manually
When Windows generic drivers do not provide adequate functionality:
- Identify the device manufacturer and model number from the Device Manager listing
- Visit the manufacturer website and navigate to their support or downloads section
- Download the latest driver specifically designed for your Windows version and architecture
- Run the installer and follow all on-screen prompts to completion
- Restart your computer after the installation finishes successfully
Keeping drivers updated prevents Code 45 and other device manager errors from occurring in the future. For related Device Manager issues, our guide to Device Manager Error Code 28 covers another common driver-related problem.
How to Fix Code 45 Bluetooth Windows Issues
Bluetooth devices suffer from Code 45 more frequently than most other hardware types. The wireless nature of Bluetooth connections creates additional points of failure between driver software and physical hardware.
Fix Bluetooth Issues in Windows 10
Windows 10 Bluetooth problems with Code 45 typically require adjusting Bluetooth services and drivers:
- Open Settings by pressing Windows key + I
- Navigate to Devices and select Bluetooth & other devices
- Verify Bluetooth is turned on at the top of the settings page
- Remove the problematic device by clicking it and selecting Remove device
- Restart your computer completely to refresh Bluetooth services
- Re-pair the device by placing it in pairing mode and adding it again through Windows Settings
Fix Bluetooth Issues in Windows 11
Windows 11 reorganized Bluetooth settings, requiring a different approach:
- Open Settings using Windows key + I
- Click Bluetooth & devices in the left sidebar
- Toggle Bluetooth on if it is currently disabled
- Select Devices to view paired Bluetooth hardware
- Remove the device showing Code 45 by clicking the three dots menu and selecting Remove device
- Navigate to Quick Settings by pressing Windows key + A
- Turn Bluetooth off and on again to reset the Bluetooth radio
- Restart Windows before attempting to pair the device again
Windows 11 users have reported that the redesigned Bluetooth stack occasionally loses device recognition after system updates. A clean re-pairing process typically restores full functionality. For more detailed Bluetooth troubleshooting, see our guide on fixing Bluetooth issues in Windows.
Restart Bluetooth Services
If the Bluetooth Settings approach does not work, restart the Bluetooth service directly:
- Press Windows key + R to open the Run dialog box
- Type services.msc and press Enter to open Services
- Scroll down and find Bluetooth Support Service in the list
- Right-click the service and select Restart from the context menu
- Double-click the service to open its properties
- Set Startup type to Automatic to ensure it runs on every boot
Update Bluetooth Drivers
Outdated Bluetooth drivers commonly cause Code 45 errors in both Windows 10 and Windows 11:
- Open Device Manager using Windows key + X and selecting it from the menu
- Expand the Bluetooth category by clicking the arrow beside it
- Right-click your Bluetooth adapter and choose Update driver
- Select Browse my computer for driver software
- Choose Let me pick from a list of available drivers
- Select the manufacturer driver if multiple options appear and complete the installation
How to Show and Fix Hidden Devices in Device Manager
Device Manager hides devices that are not currently present by default. However, Code 45 errors can appear on hidden devices that Windows remembers from past connections. Accessing these hidden entries helps you fully resolve persistent errors.
Revealing Hidden Devices in Device Manager
Windows stores records of previously connected devices even after they are removed. These hidden entries can sometimes show Code 45:
- Open Device Manager as administrator by right-clicking the Start button and selecting Device Manager
- Click View in the top menu bar
- Select Show hidden devices from the dropdown menu
- Look for devices shown with faded or greyed-out icons, which indicate previously connected hardware
- Right-click any hidden device showing Code 45 and select Uninstall device
Removing these ghost entries from past connections eliminates phantom Code 45 errors and prevents them from cluttering your device list. Forum users have confirmed that hidden devices showing Code 45 often persist until explicitly removed through this process.
Using the Command Prompt to Show All Devices
For deeper access to hidden device records, use the Windows command prompt:
- Open Command Prompt as administrator by searching for cmd in the Start menu, right-clicking, and selecting Run as administrator
- Type set devmgr_show_nonpresent_devices=1 and press Enter
- Type start devmgmt.msc to launch Device Manager with hidden devices visible
- Click View in Device Manager and enable Show hidden devices
- Find non-present devices (typically greyed out) and uninstall them
This method reveals devices that were previously connected but are no longer physically present, including devices that showed Code 45 before being unplugged. Removing these entries cleans up your Device Manager view and eliminates orphaned error states.
Advanced Solutions for Code 45 Error
When standard fixes do not resolve the issue, these advanced troubleshooting methods address underlying system problems that may be causing persistent Code 45 errors.
Run Windows Hardware and Devices Troubleshooter
Windows includes a built-in troubleshooter specifically designed for hardware detection issues:
- Press Windows key and type “troubleshoot” in the search box
- Select Troubleshoot settings from the search results
- Click Additional troubleshooters near the bottom of the page
- Find and select Hardware and Devices from the list
- Click Run the troubleshooter and wait for it to detect issues
- Apply any recommended fixes that the troubleshooter suggests
System File Checker (SFC) Scan
Corrupted Windows system files can interfere with device detection and cause Code 45 errors. The SFC tool scans and repairs these files:
- Open Command Prompt as administrator by searching for cmd, right-clicking, and selecting Run as administrator
- Type sfc /scannow and press Enter to begin the scan
- Wait for the scan to complete, which typically takes 15-30 minutes depending on your system
- Review the results to see if any corrupted files were repaired or could not be fixed
- Restart your computer when the scan finishes completely
Many Reddit users have reported that running sfc /scannow followed by a restart resolves WiFi adapter and network adapter Code 45 errors that persisted through driver reinstallation. This happens because the scan repairs system files that the drivers depend on for proper communication.
DISM Scan for System Image Repair
When SFC does not fully resolve the issue, DISM can repair the Windows system image that underlies all device operations:
- Open Command Prompt as administrator
- Type DISM /Online /Cleanup-Image /RestoreHealth and press Enter
- Allow the process to complete, which can take 20-40 minutes on most systems
- Run sfc /scannow again after DISM finishes to ensure all system files are healthy
- Restart your computer to apply all repairs
The DISM tool repairs the Windows deployment image that SFC draws from. When this image is corrupted, even fresh driver installations can fail, leading to persistent Code 45 errors. Running both scans in sequence often resolves issues that neither tool can fix alone.
CHKDSK for Disk and Storage Issues
Storage device errors can cascade into device detection problems throughout Windows:
- Open Command Prompt as administrator
- Type chkdsk /f /r and press Enter to schedule a disk check
- Type Y when prompted to schedule the check for the next restart
- Restart your computer and allow the check to run before Windows loads
- Wait for completion, which may require an hour or more depending on drive size
While CHKDSK might seem unrelated to device detection, fixing disk errors resolves underlying storage system problems that can prevent proper device enumeration during Windows startup.
How to Prevent Code 45 Error in the Future
After resolving Code 45, adopting preventive practices reduces the likelihood of recurrence. These habits keep your system stable and devices properly recognized.
Keep Drivers Updated
Regular driver updates prevent compatibility issues that cause Code 45 and other device errors:
- Check for driver updates through Windows Update at least monthly
- Visit manufacturer websites for critical devices like graphics cards, network adapters, and Bluetooth hardware
- Enable automatic updates where manufacturers offer this option
- Test new drivers before fully committing, as updates can occasionally introduce new problems
Safely Remove Hardware
Always use proper removal procedures to prevent device driver corruption:
- Click the Safely Remove Hardware icon in the Windows system tray
- Select your device from the list of connected hardware
- Wait for the confirmation message before physically disconnecting
- Avoid unplugging devices while data is being written or applications are actively using them
Regular System Maintenance
Routine maintenance keeps Windows running smoothly and prevents cumulative issues:
- Run Windows Update regularly to keep system files current
- Perform monthly disk cleanup to remove temporary files and free up space
- Scan for malware weekly using Windows Security or a trusted antivirus
- Create system restore points before installing new software or driver updates
Backup Working Drivers
Having backups of working drivers speeds recovery if problems occur:
- Export drivers from Device Manager for critical devices while they are working
- Store backups on an external drive or cloud storage
- Document device models and driver versions in a simple text file
- Restore from backup if updates cause Code 45 or other issues
Frequently Asked Questions
How do I solve error code 45?
To solve error code 45, start by reconnecting the device and restarting your computer. If that does not work, uninstall the device in Device Manager and scan for hardware changes to reinstall drivers. For persistent cases, run the System File Checker (sfc /scannow) and DISM scans to repair corrupted system files. Bluetooth devices may require restarting the Bluetooth Support Service through services.msc.
How do I fix code 45 printer error?
Printer code 45 errors typically stem from USB connection issues or corrupted printer drivers. First, disconnect and reconnect the USB cable to a different port. Then uninstall the printer from Devices and Printers, remove it from Device Manager, and restart your computer. When Windows rediscover the printer, install fresh drivers from the manufacturer website if needed.
What does error code 45 mean?
Error code 45 means Windows cannot detect a hardware device that should be connected to your computer. The specific error message reads ‘Currently, this hardware device is not connected to the computer.’ Despite this wording, the problem is usually a software or driver issue rather than an actual physical disconnection. Code 45 appears in Device Manager when Windows loses communication with the device through its driver interface.
How do I reconnect my hardware device to my computer?
To reconnect a hardware device, first completely disconnect it from your computer including all cables and receivers. Wait 15-30 seconds, inspect the port for damage, then firmly reconnect to the same or a different port. For wireless devices, turn them off and on again, remove pairing in Windows Bluetooth settings, and re-pair from scratch. If simple reconnection does not work, uninstall the device in Device Manager and let Windows rediscover it.
Why does my Bluetooth device show code 45 error?
Bluetooth devices show code 45 due to driver corruption, Bluetooth service failures, or pairing problems. The Bluetooth Support Service may have stopped working properly, or Windows update changes may have disrupted the Bluetooth stack. Reinstalling Bluetooth drivers, restarting the Bluetooth service through services.msc, or removing and re-pairing the device usually resolves this issue on both Windows 10 and Windows 11.
Can code 45 error damage my computer?
No, code 45 error itself cannot damage your computer. It is simply a status indicator that Windows cannot communicate with a hardware device. However, if the underlying cause is actual hardware failure such as a damaged USB port or failing component, that hardware problem could potentially cause issues. The error is a notification about detection problems, not a source of system damage.
How long does it take to fix code 45 error?
Simple reconnection and restart fixes take just a few minutes. Driver reinstallation typically requires 10-20 minutes. Advanced solutions like SFC and DISM scans take 30-45 minutes to complete. Most users resolve code 45 errors within 15-30 minutes by working through the solutions in order from simplest to most complex. Persistent hardware failures may require device replacement or professional support.
What if none of the code 45 fixes work?
If all software solutions fail, test the device on another computer to determine if hardware replacement is needed. If the device works elsewhere, your computer may have a failed port or motherboard issue requiring professional repair. You can also try a system restore to return Windows to a point when the device was working properly. As a last resort, contact the device manufacturer support or consider professional technical assistance.
Is code 45 a serious hardware problem?
Code 45 is usually not serious and resolves through software fixes. The vast majority of code 45 errors stem from driver issues, temporary glitches, or Windows update changes rather than actual hardware failure. Only after exhausting all software solutions should you consider hardware replacement. If a device fails on multiple computers, the device itself likely needs replacement rather than further troubleshooting.
Conclusion
Code 45 errors can be alarming when they first appear, especially when the affected device is sitting right there connected to your computer. However, this error is one of the more manageable Device Manager problems you can encounter. The majority of cases resolve with simple reconnection, driver reinstallation, or a system restart.
Working through the solutions in order from basic to advanced ensures you find the fastest fix without overcomplicating the process. Start with reconnecting the device and restarting, move to driver reinstallation through Device Manager, and progress to SFC and DISM scans only if necessary. For Bluetooth devices, restarting the Bluetooth Support Service often provides the breakthrough needed.
Once you have resolved Code 45, keeping drivers updated, practicing safe hardware removal, and maintaining regular system care prevents the error from returning. If you have tried all the solutions in this guide and still experience issues, the underlying problem may require professional assessment or hardware replacement.
For other Windows device errors you might encounter, explore our guides on Device Manager Error Code 28 and Bluetooth troubleshooting for additional help with common Windows hardware issues.