Do you know Windows actually keeps a history of all USB drives ever connected to your computer? Every time you plug in a USB device into your computer, Windows not only installs the drive and gets it ready for you to use but also writes an entry into the system to keep a history of what’s happened.
You can check those hidden unconnected USB devices by turning on Show hidden devices in Device Manager.
Or use tools such as NirSoft’s USBDeview that displays such a history in a more comprehensive way.
Or, in a PowerShell way, which is pretty cool:
$Path = 'HKLM:\System\Current\Enum\USBStor\*\*'
Get-ItemProperty -Path $Path | Select-Object -Property FriendName, CompatibleIDs, Mfg
Basically, what it does is to perform a query to a Registry entry that stores all USB storage connection information, and list them with specified columns. Not sure how much of a value this would give to you but I am sure it would be a good example showing you how much PowerShell can do. Enjoy.
Latest posts by Kent Chen (see all)
- The Story of How SSH Got the Port Number 22 - April 28, 2017
- Microsoft To-Do App Available in Preview on Windows 10, iOS and Android - April 19, 2017
- Windows 10 Tip: What’s Mini View in Movies & TV App and How To Use it - April 15, 2017
Last updated: 08/04/2014