Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2311
  • Last Modified:

Turn of Windows 7 desktop sounds programmatically?

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
Kandium
Asked:
Kandium
  • 2
1 Solution
 
jvuzCommented:
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
 
KandiumAuthor Commented:
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
 
Jackie ManCommented:
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
 
KandiumAuthor Commented:
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

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now