sometimes I run grep (aka select-string) that has string that occurs too often, then PowerShell goes crazy, sometimes I manage to kill it with Ctrl+C, but even then I have to endure irritating beeping sound for 30 + seconds... can this be disabled also without killing terminal where it is running?

  • sc config beep start= disabled sc stop beep ?
    – STTR
    Mar 27, 2013 at 16:34
  • 3
    @STTR: Make that sc.exe, since sc in PowerShell is an alias for Set-Content. Read support.microsoft.com/kb/838671 for more details. Make this in to an answer.
    – Jay Bazuzi
    Mar 28, 2013 at 5:12
  • The term 'sc.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Mar 28, 2013 at 9:16

2 Answers 2


Open your PowerShell profile, or type:

if (!(Test-Path $profile)) {New-Item -Type File -Path $profile -Force}

to make a profile if one doesn't exist.

Then add Set-PSReadlineOption -BellStyle None to the profile to turn the sound off.

(that sound drives my dog insane, it was sapping my will to live)


This powershell is the SC equivalent that was already answered.

Get-Service Beep | Stop-Service -PassThru | Set-Service -StartupType Disabled
  • This can be simplified to Set-Service beep -StartupType Disabled if you are only looking to disable the service. May 5, 2017 at 7:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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