Here's my silent install script (PowerShell). This should be run per user as the user:
$downloadx86url = "https://teams.microsoft.com/desktopclient/installer/windows/x86"
$downloadx64url = "https://teams.microsoft.com/desktopclient/installer/windows/x64"
$downloadpath = "$env:TEMP\teamstemp.exe"
$online = Test-Connection teams.microsoft.com -Count 1 -Quiet
while (!$online) {
Start-Sleep -Seconds 5
$online = Test-Connection teams.microsoft.com -Count 1 -Quiet
}
if ([System.Environment]::Is64BitOperatingSystem) {
$downloadurl = $downloadx64url
} else {
$downloadurl = $downloadx86url
}
$wc = New-Object System.Net.WebClient
$downloadurl = $wc.DownloadString($downloadurl)
$wc.DownloadFile($downloadurl,$downloadpath)
if (Test-Path $downloadpath) {
Start-Process "$downloadpath" -ArgumentList "-s" -Wait -NoNewWindow
Remove-Item $downloadpath -Force
}
I then capture the following:
HKCU\Software\Microsoft\Office\Teams
%appdata%\Teams
%appdata%\Microsoft\Teams
%localappdata%\Microsoft\Teams
%localappdata%\Microsoft\TeamsMeetingAddin
And exclude:
%appdata%\Teams\logs
%appdata%\Microsoft\Teams\Application Cache
%appdata%\Microsoft\Teams\Cache
%appdata%\Microsoft\Teams\tmp
%appdata%\Microsoft\Teams\logs.txt
%appdata%\Microsoft\Teams\lockfile