r-Techsupport / Get-Specs

Windows Specifications script for rTechsupport
GNU General Public License v3.0
6 stars 4 forks source link

Implement `Get-PnpDevice -PresentOnly | Where-Object { $_.InstanceId -match '^USB' }` for a list of USB device details #134

Closed zleyyij closed 1 year ago

zleyyij commented 1 year ago

windows equivalent of lsusb

PipeItToDevNull commented 1 year ago
Get-PnpDevice -PresentOnly | Where-Object { $_.InstanceId -match '^USB' } | Select FriendlyName,Description,Class,InstanceID,PNPClass,Status

Is this enough of the fields?

zleyyij commented 1 year ago

Throw Service in the list, and that's fantastic, thanks

PipeItToDevNull commented 1 year ago

Get-PnpDevice -PresentOnly | Where-Object { $_.InstanceId -match '^USB' } | Select FriendlyName,Description,Class,InstanceID,Status,Service

PipeItToDevNull commented 1 year ago

image