Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Ping multiple servers from a list of IP addresses using Powershell and find out the least response time

$
0
0

Hi,

I have a CSV file wherein i have a list of IP addresses. I would like to use Test-Connection to ping 3 domain controllers one from each of my sites from each IP address in the list to verify which gives me the least response time. So the Test connection needs to be between each IP address in the CSV and three domain controllers. A script to compare the response time between the three with each IP and return the domain controller with the least for that IP address.

I used Test-connection like 

Test-Connection -Source Server02 -ComputerName Server01

where Server02 is the IP address in the CSV and Server01 is the domain controller. However i get the error : The RPC Server is unavailable.

Please help!!


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>