Somewhere, Something Incredible Is Waiting To Be Known !!!
(Move to ...)
Home
▼
Wednesday, 7 December 2016
Powershell scrip to test connectivity of a remote server
$SERVER_NAME = "127.0.0.1"
function TestConnection($SERVER_NAME)
{
$Conn1 = Test-Connection -ComputerName $SERVER_NAME -Count 1 -ea 0
if($? -eq "true")
{
"success"
}
else
{
"faliure"
}
}
TestConnection $SERVER_NAME
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment