PowerShell: «PGet-WmiObject -Class Win32_PNPEntity -Filter "Name='Barco ClickShare USB Device'"| select -property DeviceID»
returns e.g.
DeviceID
--------
USBSTOR\DISK&VEN_BARCO&PROD_CLICKSHARE&REV_0328\8&2CBBD568&0&02.00.00.01.12.00.0000_0000&0
USBSTOR\DISK&VEN_BARCO&PROD_CLICKSHARE&REV_0328\8&D167482&0&01070101.07.01.00000000&0
USBSTOR\DISK&VEN_BARCO&PROD_CLICKSHARE&REV_0328\8&282DC7A8&0&01070101.07.01.00000000&0
USBSTOR\DISK&VEN_BARCO&PROD_CLICKSHARE&REV_0328
NOTE: The character ‘&’ needs to be escaped when used in XML. Replace ‘&’ with ‘&’,
to get all the SanDisk's use
PowerShell: «Get-WmiObject -Class Win32_PNPEntity | Where-Object {$_.name -Like "*SanDisk*"}| select -property DeviceID»
another variant is:
PowerShell: «Get-WmiObject -Class Win32_PNPEntity | Where-Object {($_.name -Like "*USB*") -and ($_.DeviceID -Like "USB*")}| select -property Name, DeviceID | sort-object -Property Name, DeviceID»