You can use vbscript. For example, this script will turn off the speakers.
set shell = CreateObject("WScript.Shell")
shell.run"Sndvol"
WScript.Sleep 1500
shell.SendKeys"{TAB}"
shell.SendKeys" "
shell.SendKeys"%{F4}"
You start it from the console using
cscript mute.vbs
More info here
source
share