vagrant/plugins/synced_folders/smb/scripts/host_info.ps1

9 lines
219 B
PowerShell
Raw Normal View History

2014-02-26 23:54:53 +00:00
$ErrorAction = "Stop"
2015-02-18 16:53:03 +00:00
$net = Get-NetIPAddress | Where-Object {($_.IPAddress -ne "127.0.0.1") -and ($_.IPAddress -ne "::1")}
2014-02-26 23:54:53 +00:00
$result = @{
ip_addresses = $net.IPAddress
2014-02-26 23:54:53 +00:00
}
Write-Output $(ConvertTo-Json $result)