Last Updated on June 30, 2017
If you are a regular user of PowerShell, then you’ll be familiar with the constant random beeps and other sounds that it makes. Though these sounds are nice in the beginning, they can get annoying really fast especially if you are someone who uses the PowerShell a lot.
The beeping sounds from PowerShell play from the Beep service in Windows. You can disable this service to stop the sound from playing again.
Using PowerShell
- Search for
PowerShell
in the Start menu search and run it as administrator. - In the PowerShell window, type the following command.
Set-Service beep -StartupType disabled
- Press Enter.
- Restart your PC.
Using Command Prompt
- Search for
cmd
in the Start menu search and run the Command Prompt as administrator. - Type the following commands in the cmd window.
net stop beep
sc config beep start= disabled
- Press Enter.
- Restart your PC.
Please note that if you run any of these commands without using the administrator access, you’ll get “The Beep service could not be stopped” error.
This command will change the setting and for future sessions as well.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
if (!(Test-Path -Path "$Profile")) {New-Item -ItemType File -Path "$Profile" -Force}
Add-Content -Value "Set-PSReadlineOption -BellStyle None" -Path "$Profile"