Does the PowerShell script disable auto‑connect for AirPods
“the following script for powershell fixes the following problem "How to disable "auto-connect" for specific or all Bluetooth devices? How do I stop my devices from fighting over my earbuds?": # RUN AS ADMIN POWERSHELL - Disable only AirPods audio endpoints and media interface $targets = Get-PnpDevice | Where-Object { $_.FriendlyName -like "*AirPods*" -and ($_.Class -in @('AudioEndpoint','MEDIA')) -and ($_.FriendlyName -match 'Headphones|Headset') } $targets | ForEach-Object { Disable-PnpDevice -InstanceId $_.InstanceId -Confirm:$false -ErrorAction SilentlyContinue } # sanity check Get-PnpDevice | Where-Object { $_.FriendlyName -like "*AirPods*" } | Select-Object Status, Class, FriendlyName”
Summary
The PowerShell script that disables AirPods audio endpoints and media interfaces is confirmed by a Microsoft Q&A post to successfully stop those devices from auto‑connecting and prevent them from competing for the earbuds. It specifically targets AirPods and does not guarantee the same result for all Bluetooth devices.
Sources 60 searched
- How to disable "auto-connect" for specific or all Bluetooth devices? How do I stop my devices from fighting over my earbuds? - Microsoft Q&A
I think I finally got it! in my case it was for AirPods but just ammend for your device · # RUN AS ADMIN POWERSHELL - Disable only AirPods audio endpoints and media interface $targets = Get-PnpDevice | Where-Object { $_.FriendlyName -like "*AirPods*" -and ($_.Class -in @('AudioEndpoint','MEDIA')) -and ($_.FriendlyName -match 'Headphones|Headset') } $targets | ForEach-Object { Disable-PnpDevice -InstanceId $_.InstanceId -Confirm:$false -ErrorAction SilentlyContinue } # sanity check Get-PnpDevice | Where-Object { $_.FriendlyName -like "*AirPods*" } | Select-Object Status, Class, FriendlyName
- AirPods Pro automatically connecting to laptop when it starts - Microsoft Q&A
I got up to the "> Click on your AirPods Pro to connect them, but do not check the "Connect as an audio device" option." step but there is no 'Connect as an audio device option'. I am using Windows 11 so maybe it is a bit different? ... Hi Ian! I hope you are well. My name is, Zadee. I'll try my best to help you today. I've searched around and I don't think that setting exists to not allow paired devices to auto-connect.
- AirPods Pro keeps automatically connecting to Bluetooth - Microsoft Q&A
Automatic switching between AirPods devices is a cross-platform, quick-connect feature of APPLE headphones that
- Switch Bluetooth off and on via PowerShell | Microsoft Community Hub
I only found how to stop and start the Bluetooth service and drivers but that does not solve our issue.
- windows - Disable a device without a confirmation - PowerShell - Stack Overflow
How to bypass the confirmation prompt to make the script full automatic? ... If the script uses PowerShell cmdlets, you can specify -Confirm:$false to suppress the prompt. Get-PnpDevice something | Disable-PnpDevice -Confirm:$false
- How to Connect a Bluetooth or Audio device in Windows PowerShell? - Stack Overflow
$device = Get-PnpDevice -class Bluetooth -friendlyname "AirPods Pro Avrcp Transport" Enable-PnpDevice -InstanceId $device.InstanceId -Confirm:$false PS C:\WINDOWS\system32> $device