Skip to content

Instantly share code, notes, and snippets.

@HatemAlSum
Created September 27, 2018 11:54
Show Gist options
  • Save HatemAlSum/32a838b6669d57cd8d4075c8f078364a to your computer and use it in GitHub Desktop.
Save HatemAlSum/32a838b6669d57cd8d4075c8f078364a to your computer and use it in GitHub Desktop.
while (1){
$date=Get-Date -Format "yyyyMMdd-HHmm-ss"
ping ms.com > "PingLog$date.txt"
sleep 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment