0

I have a wireless Logitech headset that I use frequently and speakers connected to my computer. I'd like it if when I turn on the headset and it automatically connects to the PC, the sound output automatically changes to the headset and switches back when I disconnect it.

There's no option in Windows or the Logitech software that does this from what I can find.

I attempted doing this with the Windows Task Scheduler, but connecting doesn't seem to create any kind of event.

Is there some powershell script I could write to handle this or a better method?

I found AudioDeviceCmdlets which does some of what I'm looking for, but not exactly. I'm kind of new to powershell so I'm not certain how to go about this.

1 Answers1

0

If it's not switching automatically, then connect your headset and open the Sound control panel. Find your headset in playback devices, then right click > Set as Default Device > OK. That specific configuration gets saved, and windows will switch back to it when you reconnect the headset.

Side note: With multiple audio devices, Windows remembers default devices according to a timestamp representing to when they were marked as default. More recent = higher priority.

Some headsets get assigned as a "Default Communication Device" by default, which means they're only used for audio/video calls. It's in the same context menu as above, but is a separate "Default".

That said, individual applications like Zoom can choose to ignore the windows settings and use their own list instead.

Cpt.Whale
  • 10,914