Ping with PowerShell

If you want to ping a device trough PowerShell then you can use the script below:

$Hostname = "HOSTNAME OR IP"
$Ping = New-Object System.Net.NetworkInformation.Ping
$Ping.Send($Hostname)

-Pouyan

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.