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)
- How To Disable Removable USB Storage Read, Write and Execute Access on Windows 10 - December 1, 2016
- Windows 10 Tip: How To Move System Tray to the Second Display - November 30, 2016
- How To Display The Last Logon Account Info on Windows 7 and 10 - November 29, 2016
Last updated: 08/04/2014