Use NirCMD To Change Default Audio Device in Windows on Startup

Tutorial Type:

Tutorial Difficulty

Parts Required


Tools Required

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. 

Head to this link to view the command I use in the video to set the default audio device. You can download NirCMD by clicking on this link. The full bash script I use can be found below. 

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!

Support The Makers Workbench on patreon and help us keep the dream alive!

Other Articles You Might Like

Review: Lulzbot AO-100 3D Printer part 1Lulzbot AO-100 / AO-101 reviewed

Tutorial: DIY Telescope to PC CableDIY Telescope to PC Cable

Project: LED Strip Bench LightingDIY RGB LED Strip Bench lighting

Review: ISO-TIP Portable  Soldering KitISO-Tip Portable Soldering Kit Review

Article: Arduino Due Overview

Project: 3D Printed Balloon Powered CarPrint a Balloon powered Jet Car with your 3D printer