News for hackers. Stuff that matters.
Re:Windows 10 “Developer Mode” by cm2187 on Wednesday July 20, 2016 @06:10AM (#12127911)
There are so many annoying if not dangerous default settings (like hiding known file extensions, virus.pdf.exe appears as "virus.pdf") that like many people I have scripts to do that. Microsoft would help me more by making the system more scriptable (try setting the sound mode to No Sound in script!).
Re:Windows 10 “Developer Mode” by x1798DE on Wednesday July 20, 2016 @02:09PM (#12131163)
> There are so many annoying if not dangerous default settings (like hiding known file extensions, virus.pdf.exe appears as "virus.pdf") that like many people I have scripts to do that.

Are they still doing that? I would have thought that people would have realized what a horrible, horrible idea this was by now and rolled it back. Amazing.

Re:Windows 10 “Developer Mode” by pjmlp on Wednesday July 20, 2016 @07:05AM (#12128110)
In case you just want to disable all sound, in Powershell.

Get-Service -Name Audiosrv | Stop-Service -Force

Windows is quite scriptable, it is just a matter of knowning the right knobs.

https://blogs.technet.microsoft.com/heyscriptingguy/2013/03/...

Re:Windows 10 “Developer Mode” by cm2187 on Wednesday July 20, 2016 @07:22AM (#12128174)
I do not think this turns off the windows sounds. It shuts down all audio, including non OS sounds. I just want to get rid of the annoying click noises and beeps.

There is a registry setting that sets the control panel to no sound but it has no practical effect. The only suggestion I found that works is to delete the wav files, but that's kind of messy

Re:Windows 10 “Developer Mode” by pjmlp on Wednesday July 20, 2016 @08:03AM (#12128320)
I see, so not as easy as I thought.
Re:Windows 10 “Developer Mode” by douche on Wednesday July 20, 2016 @07:24AM (#12128182)
Open the volume mixer and set "System Sounds" to 0?
Re:Windows 10 “Developer Mode” by wernercd on Wednesday July 20, 2016 @07:49AM (#12128275)
"Open and manually do" != "run powershell script to do"

This is a discussion for Developers who want to automate... manually clicking stuff is not that answer.

Re:Windows 10 “Developer Mode” by cm2187 on Wednesday July 20, 2016 @07:29AM (#12128203)
I can also open the sound control panel and set windows to no sound.

We are discussing about automating changing the default settings of windows. Not of how to change them manually through the UI.

Re:Windows 10 “Developer Mode” by perspectivep on Wednesday July 20, 2016 @09:02AM (#12128678)
All of the Windows shell supports UI automation, so if you run into corner cases like this that aren't scriptable, you can just use PowerShell to automate the clicks.
Re:Windows 10 “Developer Mode” by douche on Wednesday July 20, 2016 @09:48AM (#12128942)
Is this a thing you have to do often enough that its worth bothering to automate? I'd set it that way once, and its done, never have to touch it again.

The more inexplicable thing is why the modern/metro/universal/whatever-it-is-this-week apps don't show up in the volume mixer at all, and you have to rely on third-part tools like EarTrumpet to tweak them when they are being obnoxious.

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).

Re:Windows 10 “Developer Mode” by rasz_pl on Saturday July 23, 2016 @06:23PM (#12151254)
rem Delete Windows Sounds (Permanently)

reg delete "HKCU\AppEvents\Schemes\Apps" /f