TechBuzzPro

How to Fix Windows Devices Enumeration DLL Errors

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Devices enumeration DLL errors in Windows—such as errors referencing devmgr.dll, devicesetupapi.dll, or related system files—usually occur during device installation, driver updates, or system startup. These errors indicate Windows cannot properly enumerate (list or recognize) hardware devices, often due to corrupted system files, driver conflicts, or registry issues. The fix involves repairing system integrity, resetting device enumeration services, and ensuring drivers are clean and up to date. No special tools are required beyond built-in Windows utilities.

What You'll Need

  • A Windows PC (Windows 10 or 11)
  • Administrator privileges on the machine
  • Stable internet connection (for driver updates and Windows updates)
  • Optional: Device manufacturer's latest driver installer (downloaded manually)

Step-by-Step

  1. Restart your PC—this resolves transient enumeration glitches. After restart, open Device Manager (right-click Start > Device Manager) and check if the error reappears when expanding problematic device categories (e.g., Universal Serial Bus controllers, System devices). If devices appear with yellow exclamation marks, proceed to the next steps.
  2. Run System File Checker (SFC) to repair corrupted system files:
    • Open Command Prompt as Administrator (right-click Start > Command Prompt (Admin) or Windows PowerShell (Admin)).
    • Type sfc /scannow and press Enter.
    • Wait for the scan to complete (can take 10–30 minutes). Do not interrupt it.
    • Restart your PC after completion. Check Device Manager again.
  3. Run DISM to repair the Windows image if SFC fails or finds unrepaired issues:
    • Keep the elevated Command Prompt open.
    • Run these commands one at a time, pressing Enter after each and waiting for completion: DISM /Online /Cleanup-Image /ScanHealth
      DISM /Online /Cleanup-Image /RestoreHealth
    • Restart your PC afterward.
  4. Reset the Plug and Play (PnP) service to refresh device enumeration:
    • Open Services (right-click Start > Run, type services.msc, press Enter).
    • Locate Plug and Play, right-click it, and select Restart.
    • Then, stop the service (right-click > Stop).
    • Open File Explorer and navigate to C:\Windows\System32\config.
    • Find SYSTEM, right-click it > Rename to SYSTEM.001.
    • Find SOFTWARE, rename it to SOFTWARE.001.
    • Return to Services, restart the Plug and Play service (right-click > Start).
    • Windows will rebuild its device registry hive on next boot.
    Note: Renaming these files forces Windows to regenerate them using backup copies in the Config\RegBack folder. This is safe and standard for enumeration fixes.
  5. Uninstall problematic devices and drivers:
    • In Device Manager, right-click any device with a yellow warning or under System devices that shows a code like 43, 10, or 28.
    • Select Uninstall device, and check Attempt to remove the driver software before confirming.
    • After uninstalling all suspicious devices, restart the PC. Windows will attempt to reinstall generic drivers.
  6. Update or reinstall drivers manually:
    • For critical devices (e.g., USB controllers, network adapters), right-click the device in Device Manager > Update driver > Browse my computer for drivers.
    • Select Let me pick from a list of available drivers if prompted.
    • Alternatively, download the latest driver from the hardware manufacturer's official website (e.g., Intel, Realtek, Dell, HP) and install it using the .inf file via Device Manager > Update driver > Browse my computer > Let me pick > Have Disk.
  7. Check for Windows updates:
    • Go to Settings > Windows Update > Check for updates.
    • Install all optional updates, especially Driver updates and Quality updates.
    • Restart after installation.

Common Mistakes

  • Skipping SFC or DISM and jumping straight to driver reinstallation—corrupted system files are the root cause in over 60% of enumeration errors.
  • Not checking Attempt to remove the driver software during uninstall, leaving stale driver files that cause repeated failures.
  • Using third-party driver updater tools—these often install incorrect or bundled drivers that worsen enumeration issues.
  • Rename the wrong registry hive files (e.g., renaming SOFTWARE instead of SYSTEM)—always double-check filenames in C:\Windows\System32\config.
  • Running commands without administrator privileges—SFC and DISM will fail silently if not elevated.

Tips

  • Before making changes, create a system restore point (search for Create a restore point in Start, click Create).
  • For USB-related enumeration errors, unplug all non-essential USB devices (printers, external drives, hubs) before rebooting.
  • Use the built-in Hardware and Devices troubleshooter (Settings > System > Troubleshoot > Other troubleshooters > Hardware and Devices).
  • After fixing, run devmgmt.msc and look under View > Show hidden devices to clean up orphaned entries.
  • If the error mentions a specific DLL (e.g., devcon.exe), verify its integrity by checking if it exists in C:\Windows\System32 and is not blocked by antivirus.

Troubleshooting

If enumeration errors persist after all steps:

  1. Boot into Safe Mode (hold Shift while clicking Restart > Troubleshoot > Advanced Options > Startup Settings > Restart > press 4 or F4 for Safe Mode). In Safe Mode, uninstall all non-Microsoft devices in Device Manager and restart normally.
  2. Check Event Viewer for precise error codes:
    • Open Event Viewer (right-click Start > Event Viewer).
    • Navigate to Windows Logs > System.
    • Filter for Event ID 4192 (PnP manager errors) or Event ID 1011 (device setup errors).
    • Review the General tab for the failing device or DLL name.
  3. Reset the Windows Update components if driver updates fail:
    • In elevated Command Prompt, run: net stop wuauserv
      net stop cryptSvc
      net stop bits
      net stop msiserver
      ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
      ren C:\Windows\System32\catroot2 catroot2.old
      net start wuauserv
      net start cryptSvc
      net start bits
      net start msiserver
    • Then run Windows Update again.
  4. Perform an in-place upgrade as a last resort:
    • Download the Windows 10 or 11 Installation Media from Microsoft’s official site.
    • Run setup.exe and choose Keep personal files and apps.
    • This reinstalls Windows without resetting or wiping data, replacing system files and drivers cleanly.

Frequently Asked Questions

What causes a "devicesetupapi.dll not found" error?

This typically occurs when system files are missing or corrupted—often due to incomplete driver installations, malware, or failed Windows updates. Running sfc /scannow and DISM /RestoreHealth usually restores the missing file.

Can a failing hard drive cause enumeration errors?

Yes. Physical disk errors can corrupt system files or prevent registry writes. Run chkdsk /f /r from an elevated Command Prompt (requires reboot) to scan for and repair disk errors before retrying enumeration fixes.

Why do USB devices keep showing "This device cannot start. (Code 10)"?

Code 10 often stems from driver incompatibility or power issues. First, try a different USB port. If that fails, uninstall the device in Device Manager, then in the registry (regedit), delete the UpperFilters and LowerFilters values under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{36FC9E60-C465-11CF-8056-444553540000} (USB root hubs). Restart and reconnect devices.

Is renaming SYSTEM and SOFTWARE files safe?

Yes—Windows stores backup copies in C:\Windows\System32\config\RegBack. If something goes wrong, you can restore the original files from there. Always create a system image backup first if you’re unsure.

Do I need to update BIOS/UEFI to fix enumeration errors?

Rarely. BIOS updates only help if Microsoft’s hardware support stack is known to have a bug fixed in a specific firmware version. Check your motherboard manufacturer’s release notes—never update BIOS solely for enumeration issues unless explicitly recommended.

Why does the error return after fixing it temporarily?

Stale or third-party drivers (e.g., antivirus virtualization layers, legacy USB drivers) often reappear. Use Device Manager > View > Show hidden devices to delete orphaned entries, and uninstall any unused virtualization or legacy driver packages from Settings > Apps > Installed apps.