i am wanting a simple command that can pair a bluetooth device through powershell
i am wanting a simple command that can pair a bluetooth device through powershell
Hi willb-6351,
Try something like this, note that elevated permissions are required:
$device = Get-PnpDevice -class Bluetooth -friendlyname "FriendlyDeviceName"
Disable-PnpDevice -InstanceId $device.InstanceId -Confirm:$false
Start-Sleep -Seconds 10
Enable-PnpDevice -InstanceId $device.InstanceId -Confirm:$false
This script disables the device and after 10 seconds enables it again.
I hope this answers your question.
--If the reply is helpful, please Upvote and Accept as answer--
11 people are following this question.
Upgrading to Windows 11-processor requirement
Why is my Surface Laptop i7 not compatible with Windows 11
Intel Core i5-7500 7th Generation Processor are capable for windows 11?
Issues with Device Security not showing Standard Hardware Security on supported hardware
Should microsoft re-consider the minimum requirements for windows 11 ?