Powershell ping test

Ping test with voice

Add-Type -AssemblyName System.speech
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer

while($true) {
    if (Test-Connection 8.8.8.8 -Count 1 -quiet) {
        $speak.Speak("Host ist up!")  }
    else {
        $speak.Speak("Host ist down!") }
}

You may also like...