IIRC, those device attach/unattach events get logged via the Service Control Manager as Event ID 7036
. IME things like this are often the result of power management -- something (like a USB hub or LAN card) goes into a lower power state and looks "disconnected" to Windows. You can often fix the problem either in the BIOS for the device or via devmgmt.msc (eg for USB hubs, go into the Power Management tab in the properties for the hub and uncheck the "Allow the computer to turn off this device" option). Don't overlook motherboard devices that might be connected via USB rather than PCI(e) -- you have USB hubs inside your system even if you don't have an external one, and low bandwidth devices may be hanging off that (motherboard bluetooth and WiFi are commonly implemented that way, for example).
I looked through the Service Control Manager, the recent 7036 logs are almost completely regarding web services like proxy auto discovery, time syncing, and other windows services starting up or stopping? Couldn't find any that were hardware-related, although there's many pages of entries to wade through so I didn't check every single one. Will check it the next time I hear Windows adding or removing something. The issue is if I don't even know which device is being powered on or off in the first place, then I have no way to modify how windows handles it's power management properties.
There's hardly any USB devices connected anyway, those that are are turned off physically such as the printer, drive dock, etc. And I'd notice if my mouse quit working
Most of the rest are just empty cables I leave attached to the back of the desktop for quick device connects. Thanks for the reply!
Ryu Connor wrote:
Not sure the status of the log in Windows 7 right off, but in Windows 8 the log will need to be enabled through the Event Log.
Event Viewer > Applications and Services Logs > Microsoft > Windows > DriverFrameworks-UserMode > Operational
Enable log will be on the right hand side under Actions
That link is pretty cool, I'm definitely bookmarking that for the next time I need to dig through event logs for anything specific.
Found it, at least on my machine it was already enabled! This is great, it has notes regarding power management activities for all attached hardware. There's no entries for the date in question which is odd... the next time I hear anything I'll check this device log. Thanks for the pointers!
I should mention I don't typically leave USB flash drives plugged into my desktop due to how hot some of them get when not even used, nor do I have external drives. I've also disabled the Windows spin-down timer on internal drives to save on wear and tear, so those can't be it either. I'll post back after it happens again if I find anything.