Update Wallpaper-Troll.ps1

This commit is contained in:
I-Am-Jakoby 2022-12-31 23:14:49 -06:00 committed by GitHub
parent 50885ac695
commit abc3564ef0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,8 +91,8 @@ function Get-GeoLocation{
if ($GeoWatcher.Permission -eq 'Denied'){
Write-Error 'Access Denied for Location Information'
} else {
$GeoWatcher.Position.Location | Select Latitude,Longitude #Select the relevant results.
$GL = $GeoWatcher.Position.Location | Select Latitude,Longitude #Select the relevant results.
if ($GL) { echo "`nYour Location: `n$GL" >> $Env:temp\foo.txt }
}
}
# Write Error is just for troubleshooting
@ -103,8 +103,8 @@ function Get-GeoLocation{
}
$GL = Get-GeoLocation
if ($GL) { echo "`nYour Location: `n$GL" >> $Env:temp\foo.txt }
Get-GeoLocation
#if ($GL) { echo "`nYour Location: `n$GL" >> $Env:temp\foo.txt }
#############################################################################################################################################