Play Beeps From PowerShell

Sound a tone or a short melody through the PC speaker.

WindowsaudioTerminalpowershellLow risk
Run [console]::beep(523,200) to play a 523 Hz tone for 200 milliseconds.

01Command

Command
$ [console]::beep(523,200); [console]::beep(659,200); [console]::beep(784,400)

02What it does

The .NET Console.Beep method plays a tone at a chosen frequency and duration. Chain several calls to make a melody, which is handy as an audible completion signal for long scripts. The second argument is milliseconds.

03Risk

RiskLow risk
RequirementsWindows 10/11 with PowerShell 5.1 or PowerShell 7+
!Warning: Beep needs access to the system speaker and may be inaudible on modern laptops without a piezo speaker.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • Console.Beep Method
    Microsoft Learn · vendor-doc · 2026-09-20
    Evidence: Documents playing a tone at a specified frequency and duration.

Last verified: 2026-09-20 · Category: System & Settings

06Related solutions