Forum Discussion
2210 HF4 still broken on Server 2019 and new Teams
- May 17, 2024OK, if anyone is interested, I got to the bottom of this issue. I had to remove the following entries from my redirections.xml file as New Teams was causing the system to keep the files in these folders locked after logoff. (This only occurs on Server 2019, not Server 2022)
<Exclude Copy="0">AppData\LocalLow</Exclude>
<Exclude Copy="0">AppData\Local\D3DSCache</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\IdentityCache</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\OneAuth</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\TokenBroker</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Windows\Caches</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Windows\Explorer</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Windows\IECompatCache</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Windows\iecompatuaCache</Exclude>
Once these were removed, the local_<user> folder was successfully being deleted.
NOTE this is my standard xml file that i've been using for years and hasworked without incident, and still works on Server 2022. Definitely an issue with New Teams on Server 2019.
Note the LocalLow was removed but it was only a couple of files in the Microsoft subfolder that was causing the issue.
<Excludes>
<Exclude Copy="0">Videos</Exclude>
<Exclude Copy="0">Saved Games</Exclude>
<Exclude Copy="0">Contacts</Exclude>
<Exclude Copy="0">Searches</Exclude>
<Exclude Copy="0">Citrix</Exclude>
<Exclude Copy="0">Tracing</Exclude>
<Exclude Copy="0">Music</Exclude>
<Exclude Copy="0">$Recycle.Bin</Exclude>
<Exclude Copy="0">AppData\LocalLow\Adobe</Exclude>
<Exclude Copy="0">AppData\Local\Apps</Exclude>
<Exclude Copy="0">AppData\Local\Downloaded Installations</Exclude>
<Exclude Copy="0">AppData\Local\assembly</Exclude>
<Exclude Copy="0">AppData\Local\CEF</Exclude>
<Exclude Copy="0">AppData\Local\Comms</Exclude>
<Exclude Copy="0">AppData\Local\Deployment</Exclude>
<Exclude Copy="0">AppData\Local\FSLogix</Exclude>
<Exclude Copy="0">AppData\Local\Packages</Exclude>
<Exclude Copy="0">AppData\Local\VirtualStore</Exclude>
<Exclude Copy="0">AppData\Local\CrashDumps</Exclude>
<Exclude Copy="0">AppData\Local\Package Cache</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Notifications</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Internet Explorer\DOMStore</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Internet Explorer\Recovery</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\MSOIdentityCRL\Tracing</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Messenger</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Terminal Server Client</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\UEV</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Windows\Application Shortcuts</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Windows\Mail</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Windows\WebCache</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Windows\WebCache.old</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Windows\AppCache</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Windows\GameExplorer</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Windows\DNTException</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Windows\Notifications</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Windows\PRICache</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Windows\PrivacIE</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Windows\RoamingTiles</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Windows\SchCache</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Windows\Temporary Internet Files</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Windows\0030</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Windows\1031</Exclude>
<Exclude Copy="0">AppData\Roaming\com.adobe.formscentral.FormsCentralForAcrobat</Exclude>
<Exclude Copy="0">AppData\Roaming\Adobe\Acrobat\DC</Exclude>
<Exclude Copy="0">AppData\Roaming\Adobe\SLData</Exclude>
<Exclude Copy="0">AppData\Roaming\Microsoft\Document Building Blocks</Exclude>
<Exclude Copy="0">AppData\Roaming\Microsoft\Windows\Network Shortcuts</Exclude>
<Exclude Copy="0">AppData\Roaming\Microsoft\Windows\Printer Shortcuts</Exclude>
<Exclude Copy="0">AppData\Roaming\ICAClient\Cache</Exclude>
<ExcludeCopy="0">AppData\Roaming\Macromedia\FlashPlayer\macromedia.com\support\flashplayer</Exclude>
</Excludes>
Are you using any type of Legacy Azure MFA /conditional access policies) in your environment?
Also, exactly how did you install the new Teams, and did you uninstall the old Teams first?
- hjmmmSep 07, 2024Copper Contributorsee this in eventlog when AppData\Local\Packages is removed:
Cant start DCOM Server Microsoft.Windows.Cortana_1.11.6.17763_neutral_neutral_cw5n1h2txyewy!CortanaUI niet starten als Niet beschikbaar/Niet beschikbaar. Foutmelding
"0"
is opgetreden bij het uitvoeren van de opdracht
"C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe" -ServerName:CortanaUI.AppXa50dqqa5gqv4a428c9y1jjw7m3btvepj.mca
and:
Kan DCOM Server Microsoft.Windows.ShellExperienceHost_10.0.17763.1_neutral_neutral_cw5n1h2txyewy!App niet starten als Niet beschikbaar/Niet beschikbaar. Foutmelding
"0"
is opgetreden bij het uitvoeren van de opdracht
"C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\ShellExperienceHost.exe" -ServerName:App.AppXtk181tbxbce2qsex02s8tw7hfxa9xb3t.mca - Lamers-ITAug 19, 2024Copper ContributorHi Ken,
I have configured New Teams with several Citrix customers, using the includes for FSLogix.
Do you have any idea how many storage is used by the New Teams Client?
I assume about 500 - 800 MB per user, but when you have 3000 users, this would mean 1,5 - 2,4 TB disk storage for FSLogix, just for Teams? - Ken_ZJul 26, 2024Brass ContributorTeams gets installed into your profile under the Packages folder so you can't exclude that (or any of the other modern apps under that folder) as that will make it stop working!
As mentioned already, the redirections.xml file gets cached in the users profile. Try deleting that file from the vhdx file to see if it re-reads the master copy and starts working, but i'm guessing it won't
regards
Ken_Z - hjmmmJul 26, 2024Copper ContributorOn test profile with new .vhdx is working now en teams start when removing line <Exclude Copy="0">AppData\Local\Packages</Exclude>.
When trying existing profile with above line removed cant start the windows start button. also Teams not starting. - Ken_ZJul 25, 2024Brass ContributorI've tested this and the local profile cache gets successfully deleted when my test user logs off, every time.
- Ken_ZJul 25, 2024Brass Contributorhjmmm
firstly, can you confirm the versions of FSLogix, Teams and WebView2 Runtime that you've got installed.
Also, have you deleted the existing profile container before doing the test? the redirections.xml file gets cached in the FSLogix container and sometimes it doesn't get read properly between sessions, so deleting the container ensures that the latest xml file gets used.
Finally, make sure that any C:\Users\local_<user> folders are deleted manually between tests and if necessary, reboot the test server between tests.
If none of the above helps, can you can send me your email address and I'll send you my entire redirections.xml file for you to try.
regards
Ken Z - Ken_ZJul 25, 2024Brass ContributorHjmmm
OK, tested this on my Server 2019 Citrix 2402 LTSR Session Host running FSLogix 2.9.8884, WebView2 Runtime 126.0.2592.113 and Teams 24165.1408.2960.3667
Deleted any existing FSLogix container for my test account
Logged in
Started Teams
Sent a teams message to another account.
Checked that both C:\users\<user> and C:\users\local_<user> existed on the session host
Logged off.
both C:\users\<user> and C:\isers\local_<user> got deleted successfully
logged in a second time and repeated the process
Logged off again and both folders successfully removed
Regards
Ken Z - hjmmmJul 25, 2024Copper ContributorI've include the 2 lines, now teams is not starting in session. Looks like getting installed when click on teams but teams is not starting.
- Ken_ZJul 25, 2024Brass ContributorLooks like the above article has been updated since i originally read it and there's more includes now. I've updated my includes to look like this
<Includes>
<Include>AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\AC</Include>
<Include>AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\AppData</Include>
<Include>AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache</Include>
<Include>AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalState</Include>
<Include>AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\RoamingState</Include>
<Include>AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\Settings</Include>
<Include>AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\SystemAppData</Include>
<Include>AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\TempState</Include>
<Include>AppData\Local\Publishers\8wekyb3d8bbwe\TeamsSharedConfig</Include>
</Includes>
I'll test it out to see how it behaves
Regards
Ken - Ken_ZJul 25, 2024Brass Contributor
Hjmmm
that's why it's not working. The official documentation says you must add the following into the include section of the redirections.xml file
<Includes>
<Include>AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams</Include>
<Include>AppData\Local\Publishers\8wekyb3d8bbwe\TeamsSharedConfig</Include>
</Includes>read https://learn.microsoft.com/en-us/microsoftteams/new-teams-vdi-requirements-deploy