FG

Turning off the cmd window beep sound

Fresh3 days ago
Mar 15, 202677409 views
Confidence Score1%
1%

Problem

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 :)

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Turning off the cmd window beep sound

Low Risk

The Windows command line command will turn off the beeping, and 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.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment