?
Solved

Disable Windows sounds by group policy

Posted on 2007-08-02
9
Medium Priority
?
17,861 Views
Last Modified: 2008-01-09
I want to set the Windows XP sound schema to:  "No Sounds", for 100 workstations.

The only topic i could find here is pointing to a MS article that discribes to disable the sound device. I only want to disable ALL MS sounds, such a login/logout sound.  


0
Comment
Question by:Rick
  • 5
  • 3
9 Comments
 
LVL 4

Expert Comment

by:amoldkelkar
ID: 19617514
Do you want to shut off the 'windows startup sound' ?

-AK
0
 

Author Comment

by:Rick
ID: 19618120
I want to diasble all windows sounds. Normally you can do that by selecting the No sounds scheme in de sound properties in the control panel.
0
 

Expert Comment

by:bmkiernan
ID: 19645656
Hi hmengineer,


Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default]
@="Windows"
"DispFileName"="@mmsys.cpl,-5856"

[-HKEY_CURRENT_USER\AppEvents\Schemes\Names\.default]
@="Windows Default Scheme"
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Accepted Solution

by:
bmkiernan earned 1400 total points
ID: 19645839
Hi hmengineer,
                  Save the data below between the lines (PARAGRAPH A.) as a .reg file and import them into the registry. It will remove two containers in the registry & disable the Default Windows Sound scheme. you will notice the '-' in '[-HKEY'
This means it will delete the data. Do you know how to add this to the login script? If not let me know.

PARAGRAPH B Will delete all sound schemes. Users may have created custom jobs.

PARAGRAPH A.
_________________________________________________________
Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default]
@="Windows"
"DispFileName"="@mmsys.cpl,-5856"

[-HKEY_CURRENT_USER\AppEvents\Schemes\Names\.default]
@="Windows Default Scheme"
_________________________________________________________________

PARAGRAPH B.
To remove all Sound schemes:
__________________________________________________________________
Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default]
@="Windows"
"DispFileName"="@mmsys.cpl,-5856"

[-HKEY_CURRENT_USER\AppEvents\Schemes\Names]
___________________________________________________________________

0
 

Author Comment

by:Rick
ID: 19646178
hi bmkiernan,

thanks for this amwser, i will try it on a local workstation, i will appreciate if you explain how ik can put this reg key into a vb logon script so i can let it work by group policy.
0
 

Expert Comment

by:bmkiernan
ID: 19646744
Do you have a login script on your domain controller already?
if so just copy the .reg file to '\\domaincontroller\netlogon'

This line is for a batch file. not vbscript.
The chances are you have a batch file calling other vb scripts.
Get your login script to run:
________________________________________________
regedit.exe -i -s \\domaincontroller\netlogon\sounds.reg
exit
________________________________________________
 
If you dont' have a login script setup on your domain just let me know, il talk you through it.
0
 

Assisted Solution

by:bmkiernan
bmkiernan earned 1400 total points
ID: 19647082
For a vbscript: You may want to mess with the "WScript.Sleep" bits
Add this to your vb login script.

Set network = WScript.CreateObject("WScript.Network")
Set fso = WScript.CreateObject("Scripting.FileSystemObject")
Set WshShell = Wscript.CreateObject("Wscript.Shell")
fso.CopyFile "\\domaincontroller\netlogon\regfilecreatedearlier.reg", "C:\Documents and Settings\All Users\Desktop\"
WScript.Sleep 500
WshShell.run "regedit /S ""C:\Documents and Settings\All Users\Desktop\remsounds.reg""",0,True
WScript.Sleep 1000
fso.DeleteFile "C:\Documents and Settings\All Users\Desktop\remsounds.reg"
0
 

Author Comment

by:Rick
ID: 19668707
thx bmkiernan,

i used this vbscript:

Set network = WScript.CreateObject("WScript.Network")
Set fso = WScript.CreateObject("Scripting.FileSystemObject")
Set WshShell = Wscript.CreateObject("Wscript.Shell")
fso.CopyFile "\\domaincontroller\netlogon\remsounds.reg", "C:\Documents and Settings\All Users\Desktop\"
WScript.Sleep 500
WshShell.run "regedit /S ""C:\Documents and Settings\All Users\Desktop\remsounds.reg""",0,True
WScript.Sleep 1000
fso.DeleteFile "C:\Documents and Settings\All Users\Desktop\remsounds.reg"


And this registry key:

Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default]
@="Windows"
"DispFileName"="@mmsys.cpl,-5856"

[-HKEY_CURRENT_USER\AppEvents\Schemes\Names]


This script diable the Windows sounds defined in the Sound scheme. After running this script it is NOT possible to go back to the original default Windows scheme. for me that is not a great problem, but may by you know how to script so the original schema wil be available.

0
 

Expert Comment

by:bmkiernan
ID: 19669893
Hi,
just export the data from the two registry keys (below) on a machine you haven't run the 'remove' script yet.

add the data from one file to the bottom of the other & import (a simple double click) it on the machine you want to add the sound again.
you could script it just the same as we did above.
this time there will be alot more entries in the .reg file & no '-' in '[HKEY..' this means it will add data instead of remove it.

[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default]

[HKEY_CURRENT_USER\AppEvents\Schemes\Names\.default]

hope this answers your question, if you need me to explain better just let me know.

Cheers,
Brian
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

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

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Suggested Courses

807 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