If you’d like to know whether a specific device is attached to your computer, you can use WMI to dump the names of all plug&play devices:
Get-WmiObject -Class Win32_PnpEntity | Select-Object -ExpandProperty Caption
If you’d like to know whether a specific device is attached to your computer, you can use WMI to dump the names of all plug&play devices:
Get-WmiObject -Class Win32_PnpEntity | Select-Object -ExpandProperty Caption