Skip to content

Instantly share code, notes, and snippets.

@sidneys
Created December 14, 2019 16:41
Show Gist options
  • Save sidneys/bdef026310e32dc7e3fea8f8875f0957 to your computer and use it in GitHub Desktop.
Save sidneys/bdef026310e32dc7e3fea8f8875f0957 to your computer and use it in GitHub Desktop.
PowerShell Geolocation
Add-Type -AssemblyName System.Device; $GeoWatcher = New-Object System.Device.Location.GeoCoordinateWatcher; $GeoWatcher.Start(); Start-Sleep -Milliseconds 5000; $GeoWatcher.Position | Out-File $env:userprofile\Downloads\error.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment