PowerShell Get IP address remote computer code example
Example 1: powershell get ip address
Get-NetIPAddress
Example 2: powershell get ip from computer name
$ips = [System.Net.Dns]::GetHostAddresses("yourhosthere")
Get-NetIPAddress
$ips = [System.Net.Dns]::GetHostAddresses("yourhosthere")