VMware

Microsoft Teams on Non-Persistent – UEM + App Vols |VMware Communities


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:TEMPteamstemp.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:

HKCUSoftwareMicrosoftOfficeTeams

%appdata%Teams

%appdata%MicrosoftTeams

%localappdata%MicrosoftTeams

%localappdata%MicrosoftTeamsMeetingAddin

 

And exclude:

%appdata%Teamslogs

%appdata%MicrosoftTeamsApplication Cache

%appdata%MicrosoftTeamsCache

%appdata%MicrosoftTeamstmp

%appdata%MicrosoftTeamslogs.txt

%appdata%MicrosoftTeamslockfile



Source link

 

To see the full content, share this page by clicking one of the buttons below

Related Articles

Leave a Reply