Created
October 10, 2022 05:59
-
-
Save rodneyshupe/faf93c7bbcdce27a6bf12aa4a1a4bc57 to your computer and use it in GitHub Desktop.
Install some apps on new Surface
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
# Microsoft Surface Install | |
# Unattended Install of Firefox | |
$SourceURL = "https://download.mozilla.org/?product=firefox-msi-latest-ssl&os=win64&lang=en-US"; | |
$Installer = $env:TEMP + "\firefox.exe"; | |
Invoke-WebRequest $SourceURL -OutFile $Installer; | |
Start-Process -FilePath $Installer -Args "/s" -Verb RunAs -Wait; | |
Remove-Item $Installer; | |
# Install Chrome | |
#$LocalTempDir = $env:TEMP; $ChromeInstaller = "ChromeInstaller.exe"; (new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', "$LocalTempDir\$ChromeInstaller"); & "$LocalTempDir\$ChromeInstaller" /silent /install; $Process2Monitor = "ChromeInstaller"; Do { $ProcessesFound = Get-Process | ?{$Process2Monitor -contains $_.Name} | Select-Object -ExpandProperty Name; If ($ProcessesFound) { "Still running: $($ProcessesFound -join ', ')" | Write-Host; Start-Sleep -Seconds 2 } else { rm "$LocalTempDir\$ChromeInstaller" -ErrorAction SilentlyContinue -Verbose } } Until (!$ProcessesFound) | |
# Install Chrome - https://www.powershellgallery.com/packages/UpdateGoogleChrome/ | |
Install-Script -Name UpdateGoogleChrome | |
## Install Lastpass - https://www.powershellgallery.com/packages/Lastpass-PS/ | |
#Install-Module -Name Lastpass-PS | |
# Install Lastpass - https://www.powershellgallery.com/packages/PSLastPass/ | |
Install-Module -Name PSLastPass | |
# Install Visual Studio - https://www.powershellgallery.com/packages/Install-VSCode/ | |
Install-Script -Name Install-VSCode | |
# Install Github - https://www.powershellgallery.com/packages/Install-Git/ | |
Install-Script -Name Install-Git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment