Last active
January 15, 2025 02:37
-
-
Save mark05e/eccfb87f5449beb87c38d2983da269b1 to your computer and use it in GitHub Desktop.
Maintenance Note - https://gist.github.com/mark05e/0a04a54c1e8489c770bd91e4910d7df9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ref: http://eddiejackson.net/wp/?p=23710 | |
$PPath=$args[0] | |
Write-Host $PPath | |
if ($PPath -eq $null){ $PPath = "C:\Temp\" } | |
$ProcName = "GoogleEarthWin.exe" | |
$WebFile = "https://dl.google.com/earth/client/advanced/current/GoogleEarthWin.exe" | |
New-Item -ItemType "directory" -Path $PPath | |
(New-Object System.Net.WebClient).DownloadFile($WebFile,"$PPath\$ProcName");Start-Process ("$PPath\$ProcName") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment