Debugging weird Teams behaviour

Kilkenny

Ars Praefectus
5,192
Subscriptor++
When quitting Teams, the "How do you want to open this file?" dialog always opens.

This is only happening on one computer. When I'm done using (New) Teams & quit the program, I get the "How do you want to open this file?" dialog opening every time. This is also the only PC I use Teams on that I use a personal MS account vs a work AD account.

If I actually try to pick a program from the dialog, for example Notepad, it says that it cannot find "C: \users\name\Desktop\MSTeams_8wekyb3d8bbwe!MSTeams.txt". I do it again & this time pick Paint, it says that it cannot find "C: \users\name\Desktop\MSTeams_8wekyb3d8bbwe!MSTeams.png".

It seems that "MSTeams_8wekyb3d8bbwe!MSTeams" is the folder name under AppData\Local\Packages that the new Teams is installed into. So I suspect maybe it's trying to write into a log file, but for some reason it's looking for it under my Desktop instead of AppData. Reinstalling it doesn't change this behaviour.

Any ideas on how to fix this? Win10 22H2, btw.
 

Lord Evermore

Ars Scholae Palatinae
1,490
Subscriptor++
Maybe try a program like Bulk Crap Uninstaller or Revo Uninstaller to perform the uninstall, which will then also scan for leftover files and registry entries and possibly clean up something that a normal uninstall is leaving behind for a new install to just keep using and causing the problem. "8wekyb3d8bbwe" is the UID for the Store app version of Teams. You could try searching the registry manually as well for that filename string to see if you can find it pointing to the desktop folder, but hopefully a removal with BCUninstaller would clean all that out for you so a reinstall would work properly.
 

Lord Evermore

Ars Scholae Palatinae
1,490
Subscriptor++
Do you use the name Jason Sigman on the MS community board? There's a report there that says they get the prompt when they change status as well. Weird bug. But your reports and that one are the only things found that mention that file/folder name.

Does the dialog give the usual option to find another application, or is it only the select few as shown in the screenshot in this post? Digging in the registry for that MSTeams_8wekyb3d8bbwe!MSTeams string is the only other thing I can think of (or maybe just 8wekyb3d8bbwe). It looks to me like maybe the ! is supposed to be a \, so it would create/access a file named MSTeams.log maybe, but due to the path somehow being broken it's causing unexpected behavior. When Teams tries to open the file, Windows doesn't know how to handle the request so it asks you.

This other user also selected Notepad and it actually created the file instead of giving an error. Can you look on another PC with Teams and see if there is such a log file in the Teams install folder?


Ugh. Stupid ass Microsoft site with hidden redirects even when providing the actual URL that is in the browser address bar (and they break usage of the Back button because it redirects forward instantly).
 

Kilkenny

Ars Praefectus
5,192
Subscriptor++
Do you use the name Jason Sigman on the MS community board?
That's not me.

Does the dialog give the usual option to find another application, or is it only the select few as shown in the screenshot in this post? Digging in the registry for that MSTeams_8wekyb3d8bbwe!MSTeams string is the only other thing I can think of (or maybe just 8wekyb3d8bbwe). It looks to me like maybe the ! is supposed to be a \, so it would create/access a file named MSTeams.log maybe, but due to the path somehow being broken it's causing unexpected behavior. When Teams tries to open the file, Windows doesn't know how to handle the request so it asks you.
It is a restricted list, so while my list of apps aren't the same as his, I don't have the option to choose another application.

His post about switching users does bring up an angle of investigation. I mentioned that this happens on the only computer that I use Teams on where I'm logged in to the PC with a Microsoft account. When I (re)install Teams, on first launch I always get the "which account do you want to use" dialog, and when I select my work account it always errors out & prompts me to switch user. Only then can I log in with my work account. So it may be related to Teams being aware of me having multiple profiles & defaulting to trying to use the personal one. My work PCs do not have my personal MS account & that profile prompt never comes up - it's work only.
 
Last edited: