Created
October 6, 2023 10:18
-
-
Save turbq/9d10e734bf0c81fca38947a7054fc5ce to your computer and use it in GitHub Desktop.
Powershell reconnect bt device
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $device = Get-PnpDevice -class Bluetooth -friendlyname "FriendlyDeviceName" | |
| Disable-PnpDevice -InstanceId $device.InstanceId -Confirm:$false | |
| Start-Sleep -Seconds 2 | |
| Enable-PnpDevice -InstanceId $device.InstanceId -Confirm:$false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment