News for hackers. Stuff that matters.
Re:Windows 10 “Developer Mode” by Someone1234 on Wednesday July 20, 2016 @10:48AM (#12129415)
> try setting the sound mode to No Sound in script!

You can do this with a .reg file.

Just need to set everything in:

HKCU/AppEvents/Schemes/Apps/.Default/[Sound Name]/.Current/(Default) to null.

Easiest way is just to set "No Sound" on an example user, then Export the entire .Default tree, you can then re-import the .reg file into a different user and have no sound on there too.

Re:Windows 10 “Developer Mode” by Alupis on Wednesday July 20, 2016 @10:52AM (#12129441)
> You can do this with a .reg file.

Which doesn't take effect until after a reboot. I think OP was wanting a scripted way to disable sound at runtime.

Re:Windows 10 “Developer Mode” by Someone1234 on Wednesday July 20, 2016 @11:08AM (#12129590)
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).