Skip to content

Instantly share code, notes, and snippets.

@turbq
Created October 6, 2023 10:18
Show Gist options
  • Save turbq/9d10e734bf0c81fca38947a7054fc5ce to your computer and use it in GitHub Desktop.
Save turbq/9d10e734bf0c81fca38947a7054fc5ce to your computer and use it in GitHub Desktop.
Powershell reconnect bt device
$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