Created
December 30, 2016 00:02
-
-
Save LawrenceHwang/542c009e7501f567bfc10a752110d549 to your computer and use it in GitHub Desktop.
PowerShell one-liner to get machine's public IP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ipaddress](((invoke-webrequest -Uri 'http://checkip.amazonaws.com/').Content | % {[char]$_}) -join '').trim() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment