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 Page File (PageFile.sys) Guide for Windows 7, 8.1 and 10 - February 22, 2017
- How To Enable and Use Fetch Files Feature in OneDrive to Access All Your Files Remotely - February 21, 2017
- Speed Up Email Search for Outlook and Gmail with Email Insight App - February 20, 2017
Last updated: 08/04/2014