Summary: Use the Beep command in Windows PowerShell.
How can I send a sound in Windows PowerShell to notify a user if an error occurs in the script?
Windows PowerShell can send a Beep to the console:
[console]::beep(500,300)
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:
[console]::beep(2000,500)
0 comments