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?
Asked
Active
Viewed 4,810 times
8
3 Answers
8
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)
2
This powershell is the SC equivalent that was already answered.
Get-Service Beep | Stop-Service -PassThru | Set-Service -StartupType Disabled
MFT
- 713
-
This can be simplified to
Set-Service beep -StartupType Disabledif you are only looking to disable the service. – Iain Ballard May 05 '17 at 07:07

sc config beep start= disabledsc stop beep? – STTR Mar 27 '13 at 16:34sc.exe, sincescin PowerShell is an alias forSet-Content. Read http://support.microsoft.com/kb/838671 for more details. Make this in to an answer. – Jay Bazuzi Mar 28 '13 at 05:12