Skip to content

Instantly share code, notes, and snippets.

@PrateekKumarSingh
Created March 17, 2016 13:03
Show Gist options
  • Save PrateekKumarSingh/326f3334e45095308a55 to your computer and use it in GitHub Desktop.
Save PrateekKumarSingh/326f3334e45095308a55 to your computer and use it in GitHub Desktop.
Get-Content C:\server.txt | `
foreach { Test-Connection ($_.ToString()+'ilo') -Count 1} `
| ft -property @{l='Server Name';e={(($_.address).split("ilo"))[0]}}, @{l='iLO Ip Address';e={$_.ipv4address}} -AutoSize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment