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

9 lines
211 B
PowerShell

$ErrorAction = "Stop"
$net = Get-WmiObject -class win32_NetworkAdapterConfiguration -Filter 'ipenabled = "true"'
$result = @{
ip_addresses = $net.ipaddress
}
Write-Output $(ConvertTo-Json $result)