Per visualizzare i dispositivi/periferiche Bluetooth connessi al computer si può utilizzare il cmdlet PowerShell Get-PnpDevice come il seguente comando
Get-PnpDevice -Class Bluetooth
![Get-PnpDevice Get-PnpDevice](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgawczkmdCERaC9LBkoMxI7RNWJSu8BsTpAPbSFb9ndHzHj9cylDQVGlQPOB0xOwCguESaMUKGGQKTb7wA7V0b_cwMAV1IjXLkCVUu9W090m6WJd7t14aAPvNaYbBIsoB7xlG3DPvT3B7vDpzmGP9wp6-QinCr9eyxUINYqCHzecYGuxnDpkz7KFXk/s16000/Get-PnpDevice.png) |
FIG 1 - Get-PnpDevice |
Per visualizzare ulteriori informazioni sui dispositivi Bluetooth si può modificare il comando precedente come mostrato di seguitoGet-PnpDevice -Class Bluetooth |FL
Tramite l'utilizzo del parametro FriendlyName è possibile ricercare un dispositivo Bluetooth indicando il suo nome o parte di esso. Ad esempio, per ricercare un dispositivo Bluetooth il cui nome contiene la stringa Intel si utilizza il comando
-Class Bluetooth -FriendlyName *Intel*
![Get-PnpDevice, parametro FriendlyName Get-PnpDevice, parametro FriendlyName](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjg0GJkRL7x4O6wmLmintznWwcc_ClUz5CLKO66wRdi5mw6JGKAfsLTjC7SFddLAo1eo3bb1iypezd04PILx48YqDS-hPJ-HnUpBgP3r7kTVvnsjg6EoO4-uA1hZ7io2vmT2RTJlAE-7vKjYTyV6Ow__u8dQbS2RPyzP5S58T4EgIGmYcGy7uSff1k/s16000/FriendlyName.png) |
FIG 2 - Get-PnpDevice, parametro FriendlyName |
Utilizzando Select-Object è possibile visualizzare solo le proprietà di nostro interesse come il nome, il produttore e il servizio corrispondente:
Get-PnpDevice -Class Bluetooth | Select-Object -Property Caption, Manufacturer, Service
![Get-PnpDevice, Select-Object Get-PnpDevice, Select-Object](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7IvTb_-oTmb3aPde6kR96lh92d2F6UXRWVwI8jdqwK8DQ_DwYCUBOMKeRXFCNtSYeIQrKju1oIXdxHzzFuuq_NV7Gjdf6Z26Fhdp3pYhEEpsId1z17bxnFUtUUrrqmLP8-IMF5nLnERO49FEG40cz8EtTnA7216k55ixbupMq6aLjM450IgisqKY/s16000/Select-Object.png) |
FIG 3 - Get-PnpDevice, Select-Object |