window powershell 获取本机IP

[System.Net.Dns]::GetHostAddresses(_.AddressFamily -eq 'InterNetwork'
} |
Select-Object -ExpandProperty IPAddressToString

你可能感兴趣的:(window powershell 获取本机IP)