Currently, this hardware devices is not connected to the computer. (Code 45)

If you see Code 45 in Device Manager when checking the device status in device properties, don’t worry. Code 45 is a common error in Device Manager and you can fix it easily!

Try these fixes

This error occurs when your computer fails to recognize the connected device, so it can be the hardware or software issue. You can try the following solutions to fix code 45.

  1. Reconnect your device
  2. Run the Windows Hardware and Devices Troubleshooter
  3. Manually uninstall and reinstall your device driver
  4. Run System File Checker
  5. Run CHKDSK
  6. Run a DISM scan
  7. Update your device drivers

Fix 1: Reconnect your device

As the error message suggested, this hardware device may not be detected by your computer, so your system fails to recognize your device. You can try the steps below to reconnect:

1) Disconnect the device from your computer.

2) Check and make sure the connecting ports and cables works properly.

You can try the device on another computer, or try another cables on this device to see if it works.

3) If there is something wrong with the connecting hardware, you’ll need to replace it with a new one. If there is nothing wrong with hardware, continue to the next step.

4) Reconnect your device to the computer again.

5) Check the device status in Device Manager to see if it works now. You’ll see This device is working properly if the issue is solved.

Fix 2: Manually uninstall and reinstall your device driver

When the error message says your hardware device is not connected to your computer, it’s probably your device driver is wrong or corrupted. Under this circumstance, manually uninstalling and reinstalling your device driver can help with your problem.

1) Press the Windows logo key and X at the same time, and click Device Manager to open it.

2) Locate your device that is giving you Code 45.

3) Right click on your device and click Uninstall device. In my case I right click on my Bluetooth device and click Uninstall device.

4) Check the box for Delete the driver software for this device and click Uninstall (if you’re prompted with this box).

5) Still in Device Manager, click the Action menu then select Scan for hardware changes. This will refresh the system and should reinstall the device and a driver for it.

6) Restart your computer, then open Device Manager to check if Code 45 has been fixed.

Fix 3: Run the Windows Hardware and Devices Troubleshooter

Microsoft has provided a Hardware and Devices Troubleshooter for you to diagnose and fix the hardware issues. So if any hardware problems happen to your device, try Hardware and Devices Troubleshooter.

To do so, follow these steps:

1) Type Control Panel in the search box and click Control Panel to launch it.

2) Be sure to view Control Panel items in large icons or small icons.

3) Click Troubleshooting.

4) Click Hardware and Sound.

5) Click Hardware and Devices.

6) The troubleshooter wizard pops up. Click Next to start.

7) Follow the on-screen instructions to finish the troubleshooting.

8) Reboot your computer and check if code 45 has been resolved.

Some people may fail to find Hardware and Devices Troubleshooter in Control Panel. That’s probably because your computer is running a version after Windows 10 build 1809, in which the Hardware and Devices Troubleshooter has been “removed”. Don’t worry, you can still run the Hardware and Devices Troubleshooter in this way:

1) Open File Explorer in your computer and navigate to C:\Windows\System32.

2) Scroll down and find msdt.exe, and this is the Hardware and Devices Troubleshooter. Double click the executable file to run.

3) You may see a popup saying Enter the passkey provided by your support professional.

4) To remove the popup, run Windows Powershell (Admin), and type msdt.exe -id DeviceDiagnostic in the Powershell, then press the Enter key on your keyboard.

5) Now you should see the Hardware and Devices Troubleshooter. Click Next to continue.

6) Follow the on-screen instructions to finish troubleshooting.

7) Restart your computer and your problem should be resolved.

Fix 4: Run System File Checker

System File Checker (SFC) is a built-in Windows tool that scans and repairs the corrupted system files. If you see Code 45 in Device Manager, it’s likely that the file responsible for your device is missing or corrupted . So you should run SFC to fix the problem. To do so:

1) Type cmd in the search box on your desktop. Right-click Command Prompt to select Run as administrator, and then click Yes to verify UAC.

2) Once you see the command prompt, type sfc /scannow and press Enter.

3) Windows will now verify the system files, and automatically fix any detected issues.

4) Once verification is complete, exit the Command Prompt.

5) Reconnect your hardware device and see if it’s working properly.

Fix 5: Run CHKDSK

CHKDSK (Check Disk) is a command run utility used to check the file system and status of the system’s hard drives. Sometimes the hard drive’s problem could be the possible reason of Code 45. In that case, you can run chkdsk to fix your problem.

1) Type cmd in the search box on your desktop. Right-click Command Prompt to select Run as administrator.

2) Click Yes at the User Account Control prompt. 

3) The command prompt will once again display. Type in the following command:

chkdsk.exe /f /r

4) Hit Enter on your keyboard, then type Y to confirm that you’d like to perform the disk check the next time you restart your computer. Please make sure you have closed all of your applications first.

Note: Running a disk check could take some time to complete. So if you don’t have the time to run the disk check the next time you boot, you can skip it and reschedule again by following the steps above.

5) Once the disk check has completed, open Device Manager and see if Code 45 has been fixed.

If this method didn’t resolve your issue, don’t worry. There is something else to try.

Fix 6: Run a DISM scan

DISM stands for Deployment Image Servicing and Management. Running a DISM scan can help fix computer errors. Here’s how to run a DISM scan:

1) Type cmd in the search box on your desktop. Right-click Command Prompt to select Run as administrator.

2) Click Yes at the User Account Control prompt. 

3) The command prompt will once again display. Type in the following command and press Enter.

DISM /Online /Cleanup-Image /RestoreHealth 

4) Wait for the scan to finish (it may take up to 20 minutes).

5) Restart your computer and now launch Device Manager. Luckily Code 45 has been fixed and your device is working properly.

Fix 7: Update your device drivers

There should be something wrong with the driver, so your computer fails to detect and communicate with your device via the device driver. If the driver is missing or out of date in your computer, you may see errors like Code 45. You can try to update the driver for your device to fix the issue.

There are two ways to update drivers in your computer: manually and automatically.

Manually update the driver: you can go to the manufacturer’s website, find the latest driver that is compatible with your variant of Windows system, then install it in your computer. this requires time and computer skills.

Automatically update the driver: if you don’t have time or patience, you can do it automatically with Driver Easy.

Driver Easy will automatically recognize your system and find the correct drivers for it. You don’t need to know exactly what system your computer is running, you don’t need to risk downloading and installing the wrong driver, and you don’t need to worry about making a mistake when installing.

You can update your drivers automatically with either the FREE or the Pro version of Driver Easy. But with the Pro version it takes just 2 clicks (and you get full support and a 30-day money back guarantee):

1) Download and install Driver Easy.

2) Run Driver Easy and click Scan Now, Driver Easy will then scan your computer and detect any problem drivers.

3) Click the Update button next to the flagged driver to automatically download the correct driver (You can do this with the FREE version), then install it in your computer.

Or click Update All to automatically install correct version of all drivers that are missing or outdated (You can do this with Pro version – You’ll be prompted to upgrade after clicking Update All).

4) After updating drivers, restart your computer, and reconnect your device to see if the issue is resolved.

These are the best solutions to fix Code 45 in Device Manager. If you have any question, feel free to comment below and we’ll see what more we can do to help.

20
20 people found this helpful