2 ms·
The method set out above is identical to how the Sound Control Panel applet works behind the scenes. So it is technologically identical to setting it via the UI
by Someone1234 10y ago
The method set out above is identical to how the Sound Control Panel applet works behind the scenes. So it is technologically identical to setting it via the UI.
As to if it requires a logout: In my experience, no, but there may be edge cases (e.g. non-OS software is also in the sound scheme, like Visual Studio and Skype for Business).
If people want to investigate further, spin up Process Monitor, and set the filter to only display rundll32.exe then set sound profiles in the Sound Control Panel applet (mmsys.cpl).