Powershell script to ping multiple ip address, PING MULTIPL IP ADDRESS BY POWERSHEL SCRIPTS.

preview_player
Показать описание
powershell script to ping multiple ip address, PING MULTIPL IP ADDRESS BY POWERSHEL SCRIPTS.

scripts:

cls

foreach ( $ip1 in $ip ) { $ip2 = ping $ip1

if ( $ip2 -imatch "(100% loss)")

{ Write-Host $ip1 " ping is filed " }

else
{ Write-Host $ip1 "ping is success "}
}

note: kindly subscribe my channel.
Рекомендации по теме
Комментарии
Автор

Thank You for teaching me new language and tool ! Looks a little like BASIC. Been a 'minute' lol. Thanks !

GREGGRCO
Автор

Good one, need for multiple ip range as well, it would be helpful

thatcurlygirl
Автор

Can you please explain the variable $ip1, $IP2 ?
also $ip2 = ping $ip1

Aashouro
Автор

Hi thanks for the video
Can you please help me with the powershell script
Requirement:
Need to pull all subnet names and associated CIDR BLOCK for a specific vnet

JyothsnaInfotech
Автор

There is a bug in the script; it shows a successful ping for blank text or spaces in text file

supritmangde
Автор

I have to open powershell everytime to paste this script cant we run it as a bat file

nacervan
Автор

how to do the same type in checking the telnet?

kumarant