Finding Known USB Drives

by Dec 5, 2013

Did you know that Windows maintains a list of all USB storage devices ever hooked up to your machine? And it's simple to dump that list:

$Path = 'HKLM:\SYSTEM\CurrentControlSet\Enum\USBSTOR\*\*'
Get-ItemProperty -Path $Path | 
  Select-Object -Property FriendlyName, CompatibleIDs, Mfg 

The result will look similar to this:

The longer the list, the more different USB storage device contacts did your computer have.

Twitter This Tip! ReTweet this Tip!