Finding USB Stick Information

by Mar 27, 2014

Did you know that Windows logs any USB stick type you ever used? To get that information from the Registry, simply use this function:

function Get-USBInfo
    $FriendlyName = '*'
  Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR\*\*\' |
  Where-Object { $_.FriendlyName } |
  Where-Object { $_.FriendlyName -like $FriendlyName } |
  Select-Object -Property FriendlyName, Mfg |
  Sort-Object -Property FriendlyName

And here is some sample output:

You can query for specific manufacturers, too:

Twitter This Tip! ReTweet this Tip!