Change Windows sound volume via the command line

Solution 1:

NirCmd is an application that does that and more.

Example of use:

  • Increase the system volume by 2000 units (out of 65535)
    nircmd.exe changesysvolume 2000
  • Decrease the system volume by 5000 units (out of 65535)
    nircmd.exe changesysvolume -5000
  • Set the volume to the highest value
    nircmd.exe setsysvolume 65535
  • Mute
    nircmd.exe mutesysvolume 1
  • Unmute
    nircmd.exe mutesysvolume 0

Solution 2:

Having read these posts and having looked for alternatives I decided to write my own command line utility, called SetVol, to set the volume. It works a little more simply than what is described in some of the other posts on this page, here are some examples that you would enter at the command prompt:

setvol 75
setvol -10
setvol +12
setvol mute
setvol unmute

There are other options too. I've released it as freeware, and you are welcome to visit www.rlatour.com/setvol for more information and to download a copy.

Enjoy