Microsoft Teams

Microsoft Teams

If you want to manage Microsoft Teams with VMware Dynamic Environment Manager (DEM), here is a good working template.

Recommended is to deploy Teams using the MSI installer, which can be found here: https://docs.microsoft.com/en-us/microsoftteams/msi-deployment

This will install the MSI into the Program Files directory, and will install Teams into the Roaming AppData folder for each user that logs on to the machine.

I don't recommended enabling DirectFlex for this application, since the application will automatically launch at logon anyway.

How to implement:

Create a new DEM config file using the DEM management console and just copy-paste these lines:

===

# Microsoft Teams MSI installer

# https://docs.microsoft.com/en-us/microsoftteams/msi-deployment

[IncludeRegistryTrees]
HKCU\Software\Microsoft\Office\Teams

[IncludeFolderTrees]
<AppData>\Microsoft\Teams
<AppData>\Teams

[ExcludeFolderTrees]
<AppData>\Microsoft\Teams\Cache
<AppData>\Microsoft\Teams\Code Cache
<AppData>\Microsoft\Teams\GPUCache
<AppData>\Microsoft\Teams\Service Worker\CacheStorage

[ExcludeFiles]
old_logs_*.txt
logs.txt

===

The end result should look like this:

Teams.png

Labels (1)
Attachments
Comments

With this config the password could not be saved.

This is my very optimized version of config:

[IncludeRegistryTrees]
HKCU\Software\Microsoft\Office\Teams

[IncludeFolderTrees]
<LocalAppData>\Microsoft\IdentityCache
<LocalAppData>\Microsoft\Teams
<LocalAppData>\Microsoft\TeamsMeetingAddin
<LocalAppData>\Microsoft\TeamsPresenceAddin
<LocalAppData>\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy
<LocalAppData>\SquirrelTemp
<AppData>\Microsoft\Teams


[ExcludeFolderTrees]
<AppData>\Microsoft Teams\logs
<AppData>\Microsoft\Teams\media-stack
<AppData>\Microsoft\Teams\Service Worker
<AppData>\Microsoft\Teams\Application Cache
<AppData>\Microsoft\Teams\Cache
<AppData>\Microsoft\Teams\tmp
<AppData>\Microsoft\Teams\meeting-addin\Cache
<LocalAppData>\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\TempState
<LocalAppData>\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\AC\Temp

[ExcludeFiles]
<AppData>\Microsoft\Teams\lockfile
<AppData>\Microsoft\Teams\storage.json
<AppData>\Microsoft\Teams\*.txt
old_logs_*.txt
logs.txt

Thanks Pim, 

I noticed that code cache folder consumes a lot and excluded it also now.

Not sure i'm missing anything by only capturing user settings only? Bbut here is the configuration i've put in place : 

[IncludeFiles]
<AppData>\Microsoft\Teams\desktop-config.json
<AppData>\Microsoft\Teams\settings.json

I am finding some discrepancies with the above configuration published by @TomH201110141 , wondering if I have missed something, somewhere, somehow 🤔

When DEM runs through the export process, the following appear in the log:

<LocalAppData>\Microsoft\IdentityCache "Does not Exist"

<LocalAppData>\Microsoft\Teams "Does not Exist"

<LocalAppData>\Microsoft\TeamsMeetingAddin "Does not Exist"

<LocalAppData>\Microsoft\TeamsPresenceAddin "Does not Exist"

<LocalAppData>\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy "Does not Exist"

<LocalAppData>\SquirrelTemp "Does not Exist"

 

 

The folder <LocalAppData>\Microsoft\Teams should exist, unless you've installed Teams in a different folder. Please check.

@Pim_van_de_Vis thanks for the response.

The Folder does indeed exist in %localappdata% but its empty, it appears that the Teams Data resides, certainly for me in the App Data Roaming %Appdata%\Microsoft\Teams.Screen Shot 2022-05-16 at 10.02.12 AM.png

Screen Shot 2022-05-16 at 4.54.19 PM.png

Teams Installer was run using the following: msiexec /i "Teams MSI File" ALLUSER=1 ALLUSERS=1

Thanks for sharing this.

Hi all, 

Below is my current Teams config, which has worked fine for a while until I recently updated to Teams Version 1.5.00.11865. Now every time we log in, we get the message "To restart teams to turn on the new meeting Experience" Has anyone else run into this yet? 

[IncludeFolderTrees]
<AppData>\Teams
<AppData>\Microsoft\Teams

[IncludeRegistryTrees]
HKCU\Software\Microsoft\Office\Teams
HKCU\Software\Microsoft\Tracing\WPPMediaPerApp\Teams

[IncludeIndividualFolders]
<LocalAppData>\Microsoft\IdentityCache

[ExcludeFiles]
<AppData>\Microsoft\Teams\*.txt
<AppData>\Microsoft\Teams\lockfile
<AppData>\Microsoft\Teams\storage.json
old_logs_*.txt
logs.txt

[ExcludeFolderTrees]
<AppData>\Microsoft Teams\logs
<AppData>\Microsoft\Teams\media-stack
<AppData>\Microsoft\Teams\Service Worker
<AppData>\Microsoft\Teams\Application Cache
<AppData>\Microsoft\Teams\Cache
<AppData>\Microsoft\Teams\tmp
<AppData>\Microsoft\Teams\meeting-addin\Cache
<AppData>\Microsoft\Teams\Code Cache
<AppData>\Microsoft\Teams\GPUCache

I was able to resolve this by removing the storage.json file "<AppData>\Microsoft\Teams\storage.json", under the ExcludeFiles section. I hope this helps anyone else who runs into this. 

Hello @MikeC3964 @Pim_van_de_Vis @86rn6r05M , 

I am trying to get DEM to save information for Teams and the only thing I am getting in the Teams.zip archive folder is the Registry folder, not AppData folder.  Here is my current config for Teams.  Would someone be able to tell me what I am doing wrong? Below is a screenshot of the contents of my Microsoft Teams.zip file

rwulffenstein_0-1668464726463.png

rwulffenstein_1-1668464910733.png

Thank you!

 

 

@rwulffenstein maybe Teams is installed in <LocalAppData>\Microsoft\Teams in you case?

@Pim_van_de_Vis 

I have confirmed it is installed in the Roaming folder

If you have redirected the AppData folder, that could explain the issue.

When you use DEM, it's never recommended to redirect AppData. Just capture all relevant AppData folders with corresponding DEM config files.

I guess I do not know what you mean be "redirect".

I did not redirect it, it was just the normal install of Teams on a Horizon desktop image.  When I look at the directories on the desktop, the Teams files are installed in the Roaming folder instead of the local folder.

What kind of profile does the user get's when he/she logs on to the horizon view desktop? We use the default profile and capture the teams data from the profile of the logged on user.  

redirect means you altered the location of for example appdata to h:\appdata which is not good practice.

Does anyone have any experience with 'The New Teams'  and DEM?

Microsoft states you should include the following folder

  • C:\user>\AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Roaming\Microsoft\Teams

As stated here:
https://learn.microsoft.com/en-us/microsoftteams/new-teams-vdi-requirements-deploy#profile-and-cache... 

But this folder doesn't exists when you use/run the new teams

I am currenly going to add the following and test.. but I was wondering whether anyone already has experience

[IncludeFolderTrees]
<LocalAppData>\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Roaming\Microsoft\Teams
<LocalAppData>\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams

[ExcludeFolderTrees]
<LocalAppData>\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\Logs
<LocalAppData>\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\EBWebView

Hi Robin,

I also installed 'The New Teams' and I see this folder in user directory.

Did you install with 'teamsbootstrapper.exe -p'?

I use this settings and it works like a expected.

[IncludeFolderTrees]
<LocalAppData>\Packages\MSTeams_8wekyb3d8bbwe


[ExcludeFolderTrees]
<LocalAppData>\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\Logs
<LocalAppData>\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\EBWebView

Not sure how we included the new teams in our base image...

But for the DEM settings.. It seemed I missed a crucial configuration file with my include..
So I changed it into 
<LocalAppData>\Packages\MSTeams_8wekyb3d8bbwe


@frob @TomH201110141 

Please see this thread on Twitter about the new Teams on VDI: René Bigler op X: 'Microsoft messed up again with the new #Teams for VDI - be aware it’s not working....

I would suggest to stay away from it for now and stick with the "old" Teams client.

He talks about FSLogix Profile Container. With DEM it works for me. 🙂 (we only use FSLogix Office Container)

@TomH201110141 

I know, but I'm not sure what is saved in DEM. If there's a mismatch somewhere between what you save with DEM and the installer on the GI, you might get into the same troubles.

 

I've created and uploaded a new DEM config file for the new Teams here:

https://communities.vmware.com/t5/Dynamic-Environment-Manager/New-Microsoft-Teams-AppX/ta-p/2992598

We're using instantclones and DEM.

Does someone has an Idea, why Teams is not logging me in?

It shows/save my credentials, if you click on it, your're logged in.

It would be great if "SSO" would be working properly.

BTW: I'm using the DEM config file from here. 

Hi Guys, 

 

i just using the instant clones (non-persistend), dem and Teams. The main goal is, when the user is loged in teams, log off from VDI, login in another VDI - the teams loads automaticly with credentials. 

I used this: 

[IncludeFolderTrees]

<LocalAppData>\Microsoft\Credentials

<LocalAppData>\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy

<LocalAppData>\Microsoft\IdentityCache

<LocalAppData>\Microsoft\TokenBroker

<LocalAppData>\Microsoft\Office\16.0\Licensing

[IncludeFiles]

<AppData>\Microsoft\Teams\preauth.json

<AppData>\Microsoft\Teams\Preferences

<AppData>\Microsoft\Teams\settings.json

<AppData>\Microsoft\Teams\desktop-config.json

<AppData>\Microsoft\Teams\storage.json

[IncludeRegistryTrees]

HKCU\Software\Microsoft\Office\Teams\

HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.aad.brokerplugin_cw5n1h2txyewy

HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\PolicyCache\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy

HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Families\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy

HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy

HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Mappings\S-1-15-2-1910091885-1573563583-1104941280-2418270861-3411158377-2822700936-2990310272

HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\Microsoft.AAD.BrokerPlugin_1000.18362.449.0_neutral_neutral_cw5n1h2txyewy

[ExcludeFolderTrees]

<LocalAppData>\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\TempState

but sudennly stoped working. Every login teams showing error message and "teams need restart" 

THX. 

Credentials etc. are typically already captured with the DEM Windows Settings templates: Certificates, IE Passwords, etc. Are those in place?

nono i dont have a configured cert/ie passwords, etd. its a nessesarry? 

i thought that only "teams" config is needed for auto-login on non-persistend vdi infrastructure.

The credentials , passwords, certificates and more are typically centrally managed and stored by Windows. This is done in the Windows Credentials Manager. This is captured with the DEM templates IE Password and Personal Certificates. 

You need to make sure DEM captures all the important information from the Windows User Profile. Let me know if this helps.

I need capture credentials for new teams?

help-me

 

VDI non persistent

Version history
Revision #:
1 of 1
Last update:
‎07-14-2021 06:03 AM
Updated by:
 
Contributors