Created
February 5, 2018 13:28
-
-
Save PrateekKumarSingh/73862be686b5803ad29c06dc5f714a87 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Foreach($server in Get-Content C:\temp\servers.txt){ | |
Test-Connection ($server.ToString()+'ilo') -Count 1 -ErrorAction SilentlyContinue |` | |
Select-Object @{l='Server Name';e={($_.address -split "ilo")[0]}}, | |
@{l='iLO Ip Address';e={$_.ipv4address}} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment