List USB Flash Drive History (PowerShell)
Prints a list of all the "Friendly" names of USB flash drives that have been plugged into a Windows machine at some point.
Details
- Language: PowerShell
Snippet
Get-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Enum\USBSTOR\*\* | Select FriendlyName