Search notes:

Script: toggle-sound.vbs

toogle-sound.vbs is a VBScript script to mute or unmute audio/sound output from cmd.exe.

VBScript

'
' mute/unmute audio
'
' http://stackoverflow.com/a/35494000/180275 
'
createObject("WScript.Shell").sendKeys(chr(173))
Github repository scripts-and-utilities, path: /toggle-sound.vbs

PowerShell

The same functionality, but as PowerShell script
$sh = new-object -comObject wScript.shell

$sh.sendKeys( 173 -as [char] )
Github repository scripts-and-utilities, path: /toggle-sound.ps1

See also

SndVol.exe
Scripts

Index