2 ms·
> 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/[S
by Someone1234 10y ago
> 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.
- Alupis 10y ago> 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.
- Someone1234 10y agoThe 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).