Windows – How to view log of hardware removal and connection

hardware-failurewindowswindows 10

In Windows 10 how do i get a log of hardware that is removed and connected. I get the Windows Disconnect about every 3-5 seconds.

enter image description here

Obviously Windows know that some hardware has disconnected: it's playing the sound.

I need to know what hardware. What PCI hub, what SATA port, what USB port, what LCP port.

I need the log that Windows must have.

Things that don't work

Bonus: Not all hardware is a USB device, USB port, or USB hub

Best Answer

Your problem sound a bit strange, which is probably why nobody answered. But there are a few places that come to mind, where you may want to look. It's all in the registry, but it's hard to extract without proper forensic software. The simplest ways are these.

  1. Open (admin) PowerShell and try to modify the queries to suit your purpose:
$Path = 'HKLM:\SYSTEM\CurrentControlSet\Enum\USBSTOR\*\*'
Get-ItemProperty -Path $Path | Select-Object -Property FriendlyName, CompatibleIDs, Mfg  
  1. Look in the C:\Windows\inf\ For example, using Cygwin:
less /cygdrive/c/Windows/Inf/