powerBTremover icon indicating copy to clipboard operation
powerBTremover copied to clipboard

Auto-remove devices with this get-pnpdevice | where-object change

Open divadiow opened this issue 3 years ago • 0 comments

Is it possible to have the script auto-remove any device that get-pnpdevice with a where-object returns?

I've modified line 14 to Get-PnpDevice | Where-Object{$_.status -eq "ok" -AND $_.instanceid -like "bthenum\*"}|

so it only shows me error status Bluetooth devices, but I then want to just remove all returned without prompt.

divadiow avatar Feb 23 '22 14:02 divadiow