Skip to content

Instantly share code, notes, and snippets.

@paveltimofeev
Last active October 22, 2015 08:57
Show Gist options
  • Save paveltimofeev/a1f0fbf9052014b573bf to your computer and use it in GitHub Desktop.
Save paveltimofeev/a1f0fbf9052014b573bf to your computer and use it in GitHub Desktop.
Get IP Location with PS
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