Check ping status of remote computer


#Name: Richa Sharma
#Date: 19-Dec-2018
# Check ping status of remote computer (IP Address is not dynamic here)


$output=Test-Connection 8.8.8.8 -Quiet
if($output -eq $true)
{
    Write-Host "Alive"
}
 else
{
    Write-Host "Not pinging"
}

Comments

Popular posts from this blog

Create a HTML file on Desktop with top 10 process running on your system, if that file already exists on Desktop it will give prompt to user to recreate that file.

Check test connectivity on remote servers with given IP range-Powershell Script