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

9 lines
141 B
PowerShell

$ErrorAction = "Stop"
$net = Get-NetIPAddress
$result = @{
ip_addresses = $net.IPAddress
}
Write-Output $(ConvertTo-Json $result)