Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 there a way to essentially mute the Beeping function of the Windows command shell?

I'm working on a PowerShell script right now which ends up printing several lines of text to the screen. I'm working out a bug in the encoding logic. But every time I'm wrong my script will spew a bunch of random binary characters to the screen and eventually cause many annoying beeps.

The failure is quite obvious without the beeps :)

share|improve this question

migrated from Jul 22 '09 at 5:04

This question came from our site for professional and enthusiast programmers.

thanks for this question. It wouldn't dawn on me to ask... but it sure as hell is annoying. – MasterPeter Apr 16 '09 at 15:08

The Windows command line command "net stop beep" will turn off the beeping, and "net start beep" will turn on the beeping. Source

It should be noted that the instruction stops the beep globally on windows and not on just for within the windows command shell. Also, the service will run again when you reboot your computer.

Ady's answer will suffice. But if you want to just disable it per instance, you can always put this method into a batch file (but it's so short you can just type it) and run it.

share|improve this answer
nice, didn't realise it was that simple. – Ady Oct 31 '08 at 7:57

Perform the following steps to disable your machine's system beep:

  1. Right-click My Computer and select Manage.
  2. Expand System Tools and select Device Manager.
  3. From the View menu, select Show hidden devices.
  4. Expand Non-Plug and Play Drivers.
  5. Right-click Beep, and select Properties.
  6. Select the Drivers tab.
  7. Click Stop. You can also change the start-up type to Disabled so the beep service never starts.


share|improve this answer

To control the Beep service startup from the command line, disable the service across reboots with:

C:\Windows\system32>sc config beep start= disabled
[SC] ChangeServiceConfig SUCCESS

Re-enable with

C:\Windows\system32>sc config beep start= auto
[SC] ChangeServiceConfig SUCCESS

Note the spacing on the sc config in the above examples, as it has specific requirements.

To do this from Powershell:

PS C:\Windows\System32> set-service beep -startuptype automatic
PS C:\Windows\System32> set-service beep -startuptype disabled
share|improve this answer
Could you add better formatting? The [SC] is part of the output, not the input, as it looks in your post. – mark Aug 16 '09 at 5:49

a word of caution: I turned off the beep using the device manager method when a console window started beeping continuously (my bug) but was not able to turn it back on again - it kept telling me it was still stopping the device. this was Windows 7. rebooting did correct the problem.

share|improve this answer
Confirming this; clicking Stop on the beep service on Windows 7 is a bit weird. However, if you just want to change the type to Disabled so that it never starts on its own again, that'll work just fine. – S. Kirby Jul 25 '15 at 18:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .