jan-h
7/30/2015 - 7:12 AM

Get the user's attention in PowerShell with altert and beep

Get the user's attention in PowerShell with altert and beep

# Alert box
[void][Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
[void][System.Windows.Forms.MessageBox]::Show("It works.")

# Beep
[Console]::Beep(600, 800)