Last active
October 22, 2015 08:57
-
-
Save paveltimofeev/a1f0fbf9052014b573bf to your computer and use it in GitHub Desktop.
Get IP Location with PS
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
function Get-IpLocation($ip) | |
{ | |
return Invoke-RestMethod "http://ip-api.com/json/$ip" | |
} | |
Get-IpLocation -ip 194.226.100.138 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment