Community


GPS Coordinates

Links used in this discussion
Alain Paradis, User (Posts: 10)
Oct 02, 2024 8:07:52 am EDT
Hi, I'm managing a lot of remote computers for different companies, and sometimes laptop are being stolen. Would it be possible for the host client to send GPS location coordinates, or maybe the WAN IP address, to the RemoteUtilities Server so we can see that info in the Viewer?

Something like this PowerShell Script :

Add-Type -AssemblyName System.Device #Required to access System.Device.Location namespace
$GeoWatcher = New-Object System.Device.Location.GeoCoordinateWatcher #Create the required object
$GeoWatcher.Start() #Begin resolving current locaton
while (($GeoWatcher.Status -ne 'Ready') -and ($GeoWatcher.Permission -ne 'Denied')) {
   Start-Sleep -Milliseconds 100 #Wait for discovery.
}
if ($GeoWatcher.Permission -eq 'Denied'){
   Write-Error 'Access Denied for Location Information'
} else {
$position = ($GeoWatcher.Position.Location | Select-Object Latitude,Longitude) #Select the relevant results.
   write-output "$($position.Latitude), $($position.Longitude)"
}
Conrad Sallian, Support (Posts: 3013)
Oct 02, 2024 8:43:06 am EDT
Hello Alain,

Thank you for your message.

Relaying GPS coordinates is a rather sensitive issue, especially given the modern-day concerns about 'personal information' in the EU and countries with legislation similar to GDPR.

However, you can already view the Host's IP address and its Internet-ID in the Admin Console of the RU Server. This will give you an idea of the ISP/network from which the Host is currently connecting to the RU Server.

Hope that helps.

* Website time zone: America/New_York (UTC -4)