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.