Last active
January 19, 2021 16:14
-
-
Save ipolyzos/6de461a3873da5d36fcb7a744fe3a62d to your computer and use it in GitHub Desktop.
Get current IP address in PowerShell script
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
| # Get current IP address in PowerShell | |
| $ip = Invoke-RestMethod http://ipinfo.io/json | Select-Object -exp ip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment