Thursday, August 10, 2017

Using PowerShell Test-Connection

#(1)_.Check if  Machine is responding

Write-host $null
#(a)_Capture Server name
$server = Read-host “_Provide Server Name to Test”

#(b)_. Test Connection
If (Test-Connection $server -count 1 -quiet) {
  Write-host "The $server responded" -f yellow

Write-host  "No connection to $server" -f red
  Write-host "Script will stop" -f red

Oz Casey, Dedeal
Systems Engineer (Blog) (Blog) (Twitter)


Ahmed Raza said...

Thanks Admin. Great usefull post for all.

movers in dubai
best movers in dubai
villa movers in dubai
local movers in dubai
cheap movers in dubai
office movers in dubai
dubai movers

Unknown said...

I checked your blog and gone through it. This sounds good to me because I am looking for Movers in Dubai

CT Rising Limo said...

I want movers and packers services in Dubai so that's why I am looking for some companies then I found your blog over the internet. So, kindly send me your packages about Movers in DubaiThanks.