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

If you notice 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 7 solutions to fix code 45.

  1. Reconnect your device
  2. Manually uninstall and reinstall your device driver
  3. Run the Windows Hardware and Devices Troubleshooter
  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 work properly.

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

3) If there’s something wrong with your port or cable, you’ll need to replace it with a new one. Otherwise, continue to the next step.

4) Reconnect your device to the computer.

5) Check the device status in Device Manager to see if it’s been back on track. If it is, you’ll see the This device is working properly message as illustrated below.


Fix 2: Manually uninstall and reinstall your device driver

When the error message says your hardware device is not connected to the computer, chances are your device driver is missing or corrupted. In this case, manually uninstalling and reinstalling your device driver may help you out.

1) Press the Windows logo key and X at the same time, then select Device Manager.

2) In the Device Manager window, locate the device that’s giving you Code 45.

3) Right-click on that device entry and select Uninstall device.

4) Tick the checkbox for Delete the driver software for this device and click Uninstall (if you’re prompted for confirmation).

5) In Device Manager, click Action on the menu bar and select Scan for hardware changes. This should refresh the system, then reinstall the device and its corresponding driver.

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


Fix 3: Run the Windows Hardware and Devices Troubleshooter

Microsoft offers you a Hardware and Devices Troubleshooter to diagnose and fix hardware issues. So try this built-in tool if any hardware problems happen to your device.

Jump to the section that suits your needs:

Note: Please check out this link if you’re not sure how to check your Windows version: How to check Windows version [Easily]

Before Windows 10 build 1809

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.

After Windows 10 build 1809

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 encounter the Code 45 issue 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 if prompted for permission.

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 the 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 for 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 if prompted for permission. 

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 relaunch Device Manager. Check to see if Code 45 has been fixed; if it has, then congrats! Otherwise, please move on to the next fix.


Fix 7: Update your device drivers

Sometimes your Code 45 issue may be caused by a missing or out-dated driver. To find out whether that’s the root cause, you should try updating your device drivers and see if that makes a difference.

There are two ways to update drivers on 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 the Windows system, and then install it on 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 the 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).

If you have trouble using Driver Easy Pro to update your drivers, please email support@drivereasy.com. We’re always here to help.

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 follow-up questions, please feel free to leave a comment below.

34
34 people found this helpful