How to disable only one built-in speaker on laptop

One of my built-in speakers was broken, so it makes zzzz noises. I can turn off it on windows sound settings, but I want to automate this procedure. I should set the configuration every moment I turn on my laptop.

I want to
1) turn off one of my built-in speaker automatically when I turn on my laptop
2) rebalance the volume when I plug in my headset

I searched through google with 'turn off one speaker', 'automatically disable speaker' and so on. I found that I can disable speakers with "motherboard jumper/cable" on this webpage. However, it's too broad keyword. Could you let me know some more search keywords or howtos for this topic?