Plug a flash drive into your Windows machine. Eject it safely. Reboot a dozen times. That device lingers in the system’s memory—forever, unless you hunt it down. MakeUseOf laid bare this hidden archive, revealing how Microsoft logs every USB connection with unyielding precision. Vendor IDs. Product IDs. Serial numbers. Timestamps. All etched into the registry, turning casual plug-ins into permanent records.
Windows doesn’t discriminate. Keyboards, cameras, external hard drives, smartphones—anything that touches a USB port gets cataloged. The primary stash sits under HKLM\SYSTEM\CurrentControlSet\Enum\USBSTOR for storage devices, with broader USB peripherals filed in HKLM\SYSTEM\CurrentControlSet\Enum\USB. MountedDevices tracks drive letters, while setupapi.dev.log in C:\Windows\INF captures driver installs, complete with connection times. MakeUseOf notes these entries stick around through updates, reboots, even years of dormancy. No auto-purge. No expiration.
Why? Faster recognition on reconnect. But the side effect stuns IT pros and forensics experts alike. Device Manager offers a glimpse—enable ‘Show hidden devices’ for ghosts of plugs past—but it’s no match for the full ledger. Fire up regedit, navigate to those keys, and watch dozens of entries unfold: SanDisk Cruzer with serial 4C531001231130130CE0, last plugged last week; generic ‘&’ placeholders for port-tied noobs. Serials distinguish identical models. Friendly names match File Explorer. Green dots flag the live ones.
NirSoft’s USBDeview steals the show here. Portable. Free. It scrapes the registry into a sortable grid: device name, serial, last plug/unplug date, drive letter. Double-click for the full dump. MakeUseOf praises it for troubleshooting—spot old entries causing port conflicts, disconnect glitches on returned laptops. Dead drive? Pull the serial for recovery services.
But punchy tools aside. Privacy hits hard. Your PC hoards a connection timeline attackers crave. Gain admin access, and they reconstruct your hardware history. Corporate forensics flips the script. Insiders exfiltrate data via USB? Registry betrays them. Winston Ighodaro, ethical hacker and forensics investigator, demonstrated this in a viral post: query USBSTOR, snag the SanDisk serial, cross-reference MountedDevices for F:, event logs for install time. “Even without the USB present, the evidence remains,” he wrote on X. Files deleted? Doesn’t matter. The device danced here.
Shellbags amplify the trail. Windows Explorer caches folder views from USBs in registry hives like NTUSER.DAT and UsrClass.dat. Browse a drive’s directories? Records persist post-ejection. Nana Sei Anyemedu, penetration tester, explained on X: “Shellbags… capture the device type, manufacturer, serial number, first insertion time, last connection time, and the user account involved.” Investigators timeline access, link to users, prove exfiltration. Elorm Daniel added: “Through Shellbags, Windows also remembers the folders you opened on that USB.” No device needed. Folders gone. Proof endures.
Recent chatter underscores the stakes. Perisai Cybersecurity tweeted in March: “Windows records every USB device ever plugged… Useful for forensics, but also valuable information if attackers gain access.” Magoban Yusuf tackled a hypothetical server breach: black hat tails in, drops USB backdoor, wipes logs. Solution? “Dive into the Windows Registry (USBSTOR) to try and pull the USB’s unique serial number.” Cyber_Racheal echoed: “Windows never forgets a USB drive… serial numbers, connection timestamps, drive letter assignments.” Even No to Digital ID warned of permanent IDs.
Clearing the slate? Tricky. No built-in button. Manual registry deletes risk breakage—back up first. USBDeview offers removal, but entries respawn on reconnect. Enterprise admins script wipes or block via Group Policy. But full erasure demands caution; forensics pros spot tampering via inconsistencies.
And tampering leaves scars. Event Viewer logs driver events under Microsoft-Windows-DriverFrameworks-UserMode/Operational. Wipe USBSTOR? Timestamps mismatch. MFT artifacts from backdoors linger. Oseni Solomon noted USB footprints in registry hives like SYSTEM and SAM. Yaniv Radunsky’s cheat sheet lists USBSTOR alongside UserAssist, RunMRU—gold for DFIR.
IT managers take note. Audit fleets with USBDeview exports. Block unauthorized ports via policy. Monitor via EDR. Forensics teams? Prioritize registry dumps pre-imaging. Users? TCOB—think chain of custody before plugging unknowns.
Windows’ ledger endures. A boon for recovery, a bane for stealth. In boardrooms and breach rooms, it shifts power to those who read between the keys.


WebProNews is an iEntry Publication