Update host_info.ps1
This commit is contained in:
parent
2557e5f3f8
commit
a1f6bfb1f2
|
@ -1,6 +1,6 @@
|
||||||
$ErrorAction = "Stop"
|
$ErrorAction = "Stop"
|
||||||
|
|
||||||
$net = Get-NetIPAddress
|
$net = Get-NetIPAddress | Where-Object {($_.IPAddress -ne "127.0.0.1") -and ($_.IPAddress -ne "::1")}
|
||||||
$result = @{
|
$result = @{
|
||||||
ip_addresses = $net.IPAddress
|
ip_addresses = $net.IPAddress
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue