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

9 lines
211 B
PowerShell
Raw Normal View History

2014-02-26 23:54:53 +00:00
$ErrorAction = "Stop"
$net = Get-WmiObject -class win32_NetworkAdapterConfiguration -Filter 'ipenabled = "true"'
$result = @{
ip_addresses = $net.ipaddress
}
Write-Output $(ConvertTo-Json $result)