VMware DEM and Teams autologin with non persistent desktops
When you using non persistent instant clones with VMware Horizon, every login you get a new VDI desktop and this is problem for Microsoft Teams. Its very annoying to every login to your VDI login to Teams. So there is working solution with VMware DEM.
Recommended is to deploy Teams using the MSI installer, which can be found here: https://docs.microsoft.com/en-us/microsoftteams/msi-deployment
msiexec /i Teams_windows_x64.msi OPTIONS=“noAutoStart=true“ ALLUSER=1 ALLUSERS=1
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.
Also i don’t recommended enable DirectFlex for Teams, since app is launched automatically at every logon anyway.
And here is my config (working with Teams Version 1.5.00.21668 (64Bit) and VMware DEM 2212:
[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