$usb = 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR\*\*' Get-ItemProperty $usb | Select-Object -ExpandProperty FriendlyName | Sort-Object
Output
tags: MrNetTek
Lab Core | The Lab of MrNetTek
A blog about IT, technical solutions, and code.