Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

How To Ping the Serves From List and Parse the Output to Store Selected Results in the File

$
0
0

Hi there!

Would you be so kind to compose a PowerShell script which does the following? I am trying to do it by myself, but having really hard time with it :(

1.There is a file which contains a list of servers.

2.PowerShell script pings the servers from that list, parses the output of the ping command and stores only the following portion it into the different file – line by line:

Reply from 192.168.10.10: bytes=32 time<1ms TTL=128
Reply from 192.168.10.10: bytes=32 time<1ms TTL=128
Reply from 192.168.10.10: bytes=32 time<1ms TTL=128
Reply from 192.168.10.10: bytes=32 time<1ms TTL=128

Thank you very much in advance!!!

Viewing all articles
Browse latest Browse all 8583

Trending Articles