You'd almost think Microsoft was deliberately making it hard to find.....
(And there are several other ways of getting to the exact same spot...)
In Windows 10... (and pretty much the same for Windows 7)
Go to Control Panel...
Click on Hardware And Sound...
Then Manage Audio Devices...
Then highlight the Speaker Output you want to configure...
Then click Properties...
Now click on the Advanced tab...
You will see a pull down box for Default Format (that's the default sample rate and bit depth)...
Setting that sets the default for that device in Windows...
(You even get a test button that will play a tone so you can confirm that your output device supports it.)
REMEMBER.....
- you are setting the default output format for Windows itself... and for Windows programs that use the Windows settings
(things like Windows Media Player and VLC)
- programs that use WASAPI mode will completely ignore this setting and play the file at its ORIGINAL "native" sample rate
- many programs also have their own settings for this that also override the Windows setting
(for example: jRiver supports WASAPI mode, but it can also convert files to other sample rates, also ignoring the Windows settings)
- you can do more fun things; for example, you can set your audio player to use your DAC, but leave the default set to the computer speakers
(if you do that, when you use your audio player it will use the DAC, but Windows beeps and boops will still come from the computer speaker)