Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to change the volume in Windows XP via the command line?

share|improve this question
AutoHotkey can do this, which you could compile and call from the command line – Matthew Lock Sep 16 '09 at 11:47
up vote 16 down vote accepted

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
share|improve this answer
Was hoping there was a standard Windows method, but this looks very handy. Will accept this if no-one supplies one in the next day or two. Thanks, Harry. – tkf144 Sep 16 '09 at 12:02
NirCmd looks very cool and very handy. Thanks for the tip. – pave Sep 16 '09 at 13:08
NirCmd is also great for getting a laptop to mute on every logon - this way it won't accidentally keep making the "ding" sound on the train (which I don't notice because of the headphones until an embarrassing moment when someone gets annoyed enough to point it out.....) – romkyns Jan 10 '10 at 15:08
This apparently also works on Windows 7, as a few now deleted non-answers pointed out earlier. – Daniel Beck Dec 17 '10 at 14:35
There's user-friendly interactive script I made for simplification that depends on nircmd. – Elvin Aslan Jun 27 '15 at 15:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.