SOLVED

Clear cached credentials on a shared computer

Copper Contributor

Hello,

 

We use shared Windows 10 computers in our meeting rooms, which automatically log into a dedicated account for that meeting room.

When users log into their Teams account, their Teams account credentials are saved somewhere. Because the next time their login name is entered, teams signs in, without asking for a password.

This happens even when the user logs out of Teams, before shutting down the PC.

 

Where can I find these cached credentials, and how can I clear these cached credentials?

What I already tried:
1)

Clearing all entries in the credential manager with the command:

for /F "tokens=1,2 delims= " %G in ('cmdkey /list ^| findstr Target') do cmdkey /delete %H

(https://blog.rmilne.ca/2019/01/11/script-to-clear-credman/)

 

2)

Deleting the folder %appdata%\Microsoft\Teams

Clearing the complete browsing history, cookies, etc.. from the Chrome browser and Internet Explorer browser.

(https://bootnet.biz/clear-microsoft-teams-cache/)

 

3)

Enable the GPO setting:

Network access: Do not allow storage of passwords and credentials for network authentication

 

4)

Rebooting

 

But after these steps, when logging into teams with a account which is used before, without asking for a password login is possible.

 

Best regards,

Koen

 

 
 
 
 
5 Replies

Hello @primator   Please take a look at this past post and see if it answers your question: https://techcommunity.microsoft.com/t5/microsoft-teams/ms-teams-shared-pc-force-logout-clear-credent...

 

best response confirmed by ThereseSolimeno (Microsoft)
Solution

Thanks @ThereseSolimeno, although is was not the solution, the last post of 'Marconi Poveda' did put me on the right track.

 

The account settings are stored as a work or school account within Windows 10.

These settings are stored in the folder "C:\Users\%username%\AppData\Local\Packages\Microsoft.AAD.BrokerPlugin_* "

After deleting this folder al settings are removed.

 
 

@primator Hi, if applicable you could just turn off the automatic pre-fill of the UPN as the credentials will pop up again after completing the sign-in (getting cached again)

https://docs.microsoft.com/en-us/microsoftteams/sign-in-teams#windows-users 

 

This is a really good tool as well when/if wanting to reset an installation 

https://docs.microsoft.com/en-us/microsoftteams/scripts/powershell-script-teams-reset-autostart 

This worked for me!

Hi @yenoh2 

Thanks for the post but could you please state exactly what you did to solve the issue.

I do also have a shared windows 10 pc with couple users using teams . 

 

Thanks 

1 best response

Accepted Solutions
best response confirmed by ThereseSolimeno (Microsoft)
Solution

Thanks @ThereseSolimeno, although is was not the solution, the last post of 'Marconi Poveda' did put me on the right track.

 

The account settings are stored as a work or school account within Windows 10.

These settings are stored in the folder "C:\Users\%username%\AppData\Local\Packages\Microsoft.AAD.BrokerPlugin_* "

After deleting this folder al settings are removed.

 
 

View solution in original post