How to obtain Public IP address from PowerShell November 26, 2019 admin Tweet How to obtain Public IP address from PowerShell CHUONG K. NGUYEN – BSc., MCSEx2, MCSAx2, MCP, MCTS, MCITP, CCNA Launch PowerShell and use this command: $ips = (Invoke-RestMethod -Uri "http://ipinfo.io").IP $ips That’s it. Tweet