Ping with audible output
From Tech-Wiki
Revision as of 12:36, 3 October 2024 by Fabricio.Lima (Talk | contribs) (Created page with "Category:Microsoft '''Back to Misc''' This command will ping a host whilst printing the current time stamp. Useful for long pings when you need to know...")
This command will ping a host whilst printing the current time stamp. Useful for long pings when you need to know when the packet was lost
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 is up!") } else { $speak.Speak("Host is down!") } }