Here's what I came up with:
ShellCommandTextReturn(cmd /q /c powershell.exe -command "Get-WmiObject -Class CIM_LogicalDevice | Where-Object -FilterScript {$_.Description -like 'USB*'} | Format-List -Property Manufacturer,Name,Caption,Status,StatusInfo)
Here is what the output looks like:
This could also be massaged down and filter out unwanted items, such as the Generic USB Host Controller an stuff like that.
What do you guys think?
Comments