PowerShell Script – Get-ComputerGeolocation

28-OCT-2013 Update: I have updated the script to retry when the status of the location provider is in initializing mode. The below script uses the Windows Location provider and the Google Geocoding API to retrieve the geographical location of the computer. The accuracy of the information retrieved depends on the source used to determine the location which are: Wi-Fi triangulation IP address resolution Cell phone tower triangulation Global Position System (GPS) Windows automatically uses the Read More …