Merge pull request #5349 from agreenbhm/master

hosts/windows: update host_info.ps1
This commit is contained in:
Mitchell Hashimoto 2015-02-24 09:26:27 -08:00
commit 7900fc65fc
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
$ErrorAction = "Stop"
$net = Get-WmiObject -class win32_NetworkAdapterConfiguration -Filter 'ipenabled = "true"'
$net = Get-NetIPAddress | Where-Object {($_.IPAddress -ne "127.0.0.1") -and ($_.IPAddress -ne "::1")}
$result = @{
ip_addresses = $net.ipaddress
ip_addresses = $net.IPAddress
}
Write-Output $(ConvertTo-Json $result)