Forum Discussion
oryxway
Mar 16, 2023Iron Contributor
Intune Package to Deploy Teams
I have got the scripts to uninstall Teams Machine Wide Installer and then I have script to install Teams client. I want to do the following steps 1. Copy Teams to a folder 2. Run the Uninstall T...
Thiago-Beier
Mar 16, 2023MCT
oryxway read this Microsoft Teams Uninstall, Reinstall, and Cleanup Guide & Scripts — LazyAdmin
then try to add something similar to the following
<#
1. check the Teams client download link under https://learn.microsoft.com/en-us/microsoftteams/get-clients?tabs=Windows
Teams on Windows provides downloadable MSI installers in 32-bit, 64-bit, and ARM64 architectures.
2. invoke-webrequest to download the teams client
#>
#URL
$targetfile = "$env:temp\Teams_windows_x64.msi"
if (get-childitem $targetfile) {
"will run"
} else {
"Downloading file"
invoke-webrequest -Uri "https://statics.teams.cdn.office.net/production-windows-x64/1.6.00.4472/Teams_windows_x64.msi" -outfile "$targetfile"
start-sleep -seconds 15
"Installing Teams"
msiexec /i $targetfile ALLUSERS=1