Solved

Turn of Windows 7 desktop sounds programmatically?

Posted on 2013-02-06
4
2,008 Views
Last Modified: 2013-02-12
Hello,

Is there an easy way to programmatically (through PowerShell or other means) to turn of the desktop sounds on Windows 7??

Why

Currently, all Windows 7 workstations come with the Sound Scheme "Windows Default" enabled, which doesn't work for us here. Our contact centres will soon be undergoing a transition to VOIP for our agents, so we need to eliminate all extraneous sounds from our agent workstations and we want to not have sounds on our kiosk solutions.

I am looking for a way to turn this off that does not involve the GUI, for example - a powershell script that could run on the workstation.

Things I have tried already are...

1. Theme

Changed the theme file under - "C:\Users\<user>\AppData\Local\Microsoft\Windows\Themes" - under [Sounds] you could change SchemeName=No Sounds, however this did not work and this custom.theme file does not exist in the directory unless you open themes at least once

2. Registry

Modifying the registry value under HKCU\AppEvents\Schemes  (Default)=.None - this however only changes the GUI, sounds still play

3. Procmon

Started up Procmon and captured changing the setting in the GUI from "Windows Default" to "No Sounds", seems he goes through and changes a ton of things on the system... especially in the registry under HKCU\AppEvents\Schemes\Apps
Anyone tried doing this before?

Regards,
Matt
0
Comment
Question by:Kandium
  • 2
4 Comments
 
LVL 21

Expert Comment

by:jvuz
ID: 38862932
http://www.techdreams.org/tips-tricks/how-to-disable-sound-themes-in-windows-7/3095-20090719

There's someone doing it with group policies:

run policy editor (gpedit.msc...must have admin permissions)
user configuration
administrative templates
control panel
personalization
Enable the 'prevent changing sounds' policy.
WARNING: be sure to set your sound scheme to what you want BEFORE implementing this policy, as it will preserve the current settings.

jvuz
0
 

Author Comment

by:Kandium
ID: 38863253
We would prefer not having to touch group policy...

In our management console (home grown application), we setup parameters on the clients like " DisableDesktopSounds = true ", then when the computer starts up or logs on (depending on what context the script needs to run in), the powershell script would have a condition to check that parameter. Then turns off or on the sounds.

Makes it very dynamic for us... so yes, GP would work but not what we are looking for.
0
 
LVL 43

Accepted Solution

by:
Jackie Man earned 500 total points
ID: 38863315
What an interesting question!

Just browse the net and see a solution in the link below.

http://www.faqforge.com/windows/windows-powershell-script-to-export-and-import-sound-schemes/

In short, you can create a new sound profile with media files of no sound at all and import the new sound profile using the Powershell Script in the link above.
0
 

Author Comment

by:Kandium
ID: 38880330
Hmmm, never thought of just doing a import/export!

Here's my plan... going to change the test machines sound theme to "No Sounds", do an export of the [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default], then change it back to "Windows Default" and do the same thing.

Open up BeyondCompare and do a text comparison on the two files to make sure that the changes are reflected and no "crap" seeks in.

Then create a PowerShell script that does an import and deliver both .reg files with it (that way the user can flip back and forth when changing the parameter). The script you linked would work, but I do not want a UI or any user interaction.

I guess I will also need to modify the [HKEY_CURRENT_USER\AppEvents\Schemes].(Default) key so that it reflects in the UI that it was changed.

Thank for your help with this!!
/Matt
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Powershell  and PSExec = Password failure 5 22
Recycle MSExchnge powershell app Pool 2 17
powershell script 9 24
SBS 2003 Windows 7 issues 7 20
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question