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
<# | |
.Synopsis Downloads and installs the latest version of Microsoft Teams. | |
.NOTES | |
TODO: Prevent Teams Firewall Popup | |
https://thoor.tech/2018/11/microsoft-teams-firewall-prompt/ | |
#> | |
$LogPath = "$env:WINDIR\Temp\Install-Teams.ps1.log" | |
Start-Transcript -Path $LogPath | |
$ec = 1 |
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
$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 { |
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
$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" |
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
[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." |
NewerOlder