Skip to content

Instantly share code, notes, and snippets.

View mark05e's full-sized avatar

mark05E mark05e

View GitHub Profile
@mark05e
mark05e / installMsEdge.ps1
Created March 24, 2021 15:42 — forked from stanionascu/installMsEdge.ps1
Install MS Edge via PowerShell
$LocalTempDir = $env:TEMP;
$EdgeInstaller = "MSEdgeInstaller.exe";
(new-object System.Net.WebClient).DownloadFile('https://c2rsetup.officeapps.live.com/c2r/downloadEdge.aspx?ProductreleaseID=Edge&platform=Default&version=Edge&source=EdgeStablePage&Channel=Stable&language=en', "$LocalTempDir\$EdgeInstaller");
& "$LocalTempDir\$EdgeInstaller" /silent /install;
$Process2Monitor = "MSEdgeInstaller";
Do {
$ProcessesFound = Get-Process | ?{$Process2Monitor -contains $_.Name} | Select-Object -ExpandProperty Name;
If ($ProcessesFound) {
"Still running: $($ProcessesFound -join ', ')" | Write-Host; Start-Sleep -Seconds 2
} else {
@mark05e
mark05e / Install-Chrome.ps1
Last active April 1, 2021 17:18 — forked from mattwoolnough/Install-Chrome.ps1
Chrome install one-liner
$Path = $env:TEMP;
$Installer = "chrome_installer.exe";
Invoke-WebRequest "https://dl.google.com/chrome/install/latest/chrome_installer.exe" -OutFile "$Path$Installer";
Start-Process -FilePath "$Path$Installer" -Args "/silent /install" -Verb RunAs -Wait;
Remove-Item "$Path$Installer"
[CmdletBinding(SupportsShouldProcess=$True)]
param(
)
#The download URL for the Teams Machine-Wide Installer for x64 systems.
$teamsInstallDownloadUri = "https://teams.microsoft.com/downloads/desktopurl?env=production&plat=windows&arch=x64&managedInstaller=true&download=true"
# -- Begin searching for a current install of Teams --
Write-Verbose "Looking for a current installation of Teams Machine-Wide Installer."