Teams won't load when %appdata% is redirected to network share
Basically, the same issue as mentioned here:
This has just happened to one of my customers who is redirecting %appdata% to a network share.
Teams loads fine when the profile is created but after signing out and back into Windows, the javascript error pops up and Teams will not load. Identical error to the one in the post above:
A JavaScript error occurred in the main process
Uncaught Exception:
Error: EEXIST: file already exists, mkdir
Using Windows 10 Enterprise 21H2 and latest version of Teams machine wide installer. UE-V doesn't solve the issue as the point of redirecting appdata/roaming is to stop the hard drive from filling up as this is an environment with shared PCs where each machine can easily see 100 users sign in per month and Teams likes to dump approx 2GB of data into that folder.