Had a request from someone this week about a way to pull every single USB device that Windows is reporting into the KACE SMA

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:

4hEKIQ.png

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?