For the last seven months or so, I have been having issues with my main PC resetting its default audio device to my headset when I reboot. I am told that this issue stems from something in the Windows 10 registry being updated when I installed the drivers for a USB headset several months ago. I have been unable to track down the registry entry that is causing this issue, so I decided to write a simple bash script to set my default audio device to my surround sound speakers after my PC starts up. To do this, I used a program called NirCMD to help automate this easier. Check out the useful resources below to make setting up this script easier.
nircmd setdefaultsounddevice "Speakers"
To open the Startup folder open the windows "Run" prompt (windows key + r) and enter the command below.
Rember to copy and paste the bash script you created into the folder that opens up. To finish up, reset your default audio device to something other than what your script sets it to, and restart your PC. I want to thank NirSoft for making NirCMD free to download, it makes creating helpful content like this much easier to make.
Thanks for taking the time to read this PC Tips and Tricks article ! If you have any questions, comments, or suggestions about how we could make our content better, please leave them below and we will be happy to respond! If you found this review helpful, or you would like to see more content like this, please consider supporting us by becoming one of our Patrons today at Patreon. Every donation counts no matter its size. Even $1 per month helps us keep the lights on, and the content flowing. Finally, please head over to our Facebook Page to give us a like, and remember to subscribe to our YouTube Channel!