I want to disable audio for specific users with GPO or something else. Our network model is not domain. So there aren't system services path in GPO. How can i do this?
Asked
Active
Viewed 563 times
1
-
Too bad you don't have an AD domain. Now it's like trying to put a square peg in a round hole. – Esa Jokinen Jun 18 '17 at 13:34
-
Do you think is there any way to do that? @EsaJokinen – MMYurt Jun 18 '17 at 13:42
-
AD and GP are for deploying such settings in all networks that fits the scope of Serverfault (professional system administration). For home users putting the speakers in a locked cabinet could be sufficient. – Esa Jokinen Jun 18 '17 at 13:55
1 Answers
2
Create a file mute.vbs:
CreateObject("WScript.Shell").SendKeys(chr(173))
Create a NoAudio.cmd script file that is run by the user at logon:
cscript mute.vbs
The script could be based on criteria such as membership in local group that you create:
REM NoAudio.cmd
WHOAMI /GROUPS | FINDSTR /i "GRP-NOAUDIO"
REM If ERRORLEVEL is 1, not in group
IF %ERRORLEVEL%==1 GOTO :EOF
cscript mute.vbs
Taken from here:
https://stackoverflow.com/questions/255419/how-can-i-mute-unmute-my-sound-from-powershell

Greg Askew
- 35,880
- 5
- 54
- 82