Test if your Host/Server is reachable with Pinger Pro+

PowerShell script to test connection/ping to your host/server on the network. Just copy the code, paste it in notepad, save it as Pinger_Pro+.ps1 and RUN with it

                    

# Pinger Pro+ 
# Author justCusrious @2020


# resize the console window
$size = (Get-Host).UI.RawUI.WindowSize
$size.Width = 80
$size.Height = 30
(Get-Host).UI.RawUI.WindowSize = $size

Write-host "Pinger Pro+ `n"

# while loop will run the code endlessly until you close the terminal

while ($true)

{

Write-host ""
$Server = Read-Host -Prompt 'Enter the server IP'

Write-host ""

If (Test-Connection $Server -count 1 -quiet) {
 Write-host "++The server responded!++ `n"
}

Else {

Write-host "--The server is not reachable--"
Write-host ""

     }  

}