I am novice to the PowerShell scripting. I am looking to fulfill one of my requirement.
I have one hosts file which is having multiple host names and IP addresses. B
I'm never seen anything from PowerShell, but I mean it can be helpful for you. Something like the following:
foreach ($line in $lines.Split('\r\n')){ Test-Connection $line.Split(' ')[1] }
http://en.wikipedia.org/wiki/Newline