PowerTip: Use PowerShell to Send Beep to Console

Doctor Scripto

Summary: Use the Beep command in Windows PowerShell.

Hey, Scripting Guy! Question How can I send a sound in Windows PowerShell to notify a user if an error occurs in the script?

Hey, Scripting Guy! Answer Windows PowerShell can send a Beep to the console:


Change the value of the first number to alter the pitch (anything lower than 190 or higher than 8500 can’t be heard), and change the value of the second number to alter the duration:



Discussion is closed.

Feedback usabilla icon