SOLVED

Clear cached credentials on a shared computer

%3CLINGO-SUB%20id%3D%22lingo-sub-1848405%22%20slang%3D%22en-US%22%3EClear%20cached%20credentials%20on%20a%20shared%20computer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1848405%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20use%20shared%20Windows%2010%20computers%20in%20our%20meeting%20rooms%2C%20which%20automatically%20log%20into%20a%20dedicated%20account%20for%20that%20meeting%20room.%3C%2FP%3E%3CP%3EWhen%20users%20log%20into%20their%20Teams%20account%2C%20their%20Teams%20account%20credentials%20are%20saved%20somewhere.%20Because%20the%20next%20time%20their%20login%20name%20is%20entered%2C%20teams%20signs%20in%2C%20without%20asking%20for%20a%20password.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3EThis%20happens%20even%20when%20the%20user%20logs%20out%20of%20Teams%2C%20before%20shutting%20down%20the%20PC.%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhere%20can%20I%20find%20these%20cached%20credentials%2C%20and%20how%20can%20I%20clear%20these%20cached%20credentials%3F%3CBR%20%2F%3E%3CBR%20%2F%3EWhat%20I%20already%20tried%3A%3CBR%20%2F%3E1)%3C%2FP%3E%3CP%3EClearing%20all%20entries%20in%20the%20credential%20manager%20with%20the%20command%3A%3C%2FP%3E%3CP%3Efor%20%2FF%20%22tokens%3D1%2C2%20delims%3D%20%22%20%25G%20in%20('cmdkey%20%2Flist%20%5E%7C%20findstr%20Target')%20do%20cmdkey%20%2Fdelete%20%25H%3C%2FP%3E%3CP%3E(%3CA%20href%3D%22https%3A%2F%2Fblog.rmilne.ca%2F2019%2F01%2F11%2Fscript-to-clear-credman%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblog.rmilne.ca%2F2019%2F01%2F11%2Fscript-to-clear-credman%2F%3C%2FA%3E)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2)%3C%2FP%3E%3CP%3EDeleting%20the%20folder%20%25appdata%25%5CMicrosoft%5CTeams%3C%2FP%3E%3CP%3EClearing%20the%20complete%20browsing%20history%2C%20cookies%2C%20etc..%20from%20the%20Chrome%20browser%20and%20Internet%20Explorer%20browser.%3C%2FP%3E%3CP%3E(%3CA%20href%3D%22https%3A%2F%2Fbootnet.biz%2Fclear-microsoft-teams-cache%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fbootnet.biz%2Fclear-microsoft-teams-cache%2F%3C%2FA%3E)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E3)%3C%2FP%3E%3CP%3EEnable%20the%20GPO%20setting%3A%3C%2FP%3E%3CP%3ENetwork%20access%3A%20Do%20not%20allow%20storage%20of%20passwords%20and%20credentials%20for%20network%20authentication%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E4)%3C%2FP%3E%3CP%3ERebooting%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20after%20these%20steps%2C%20when%20logging%20into%20teams%20with%20a%20account%20which%20is%20used%20before%2C%20without%20asking%20for%20a%20password%20login%20is%20possible.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3EKoen%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1848405%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECached%20Credentials%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Edelete%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETeams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1851505%22%20slang%3D%22en-US%22%3ERe%3A%20Clear%20cached%20credentials%20on%20a%20shared%20computer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1851505%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F803002%22%20target%3D%22_blank%22%3E%40primator%3C%2FA%3E%26nbsp%3B%20%26nbsp%3BPlease%20take%20a%20look%20at%20this%20past%20post%20and%20see%20if%20it%20answers%20your%20question%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmicrosoft-teams%2Fms-teams-shared-pc-force-logout-clear-credentials%2Fm-p%2F59654%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmicrosoft-teams%2Fms-teams-shared-pc-force-logout-clear-credentials%2Fm-p%2F59654%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1856707%22%20slang%3D%22en-US%22%3ERe%3A%20Clear%20cached%20credentials%20on%20a%20shared%20computer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1856707%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F668458%22%20target%3D%22_blank%22%3E%40ThereseSolimeno%3C%2FA%3E%2C%20although%20is%20was%20not%20the%20solution%2C%20the%20last%20post%20of%20'%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F229817%22%20target%3D%22_blank%22%3EMarconi%20Poveda%3C%2FA%3E'%20did%20put%20me%20on%20the%20right%20track.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20account%20settings%20are%20stored%20as%20a%20work%20or%20school%20account%20within%20Windows%2010.%3C%2FP%3E%3CP%3EThese%20settings%20are%20stored%20in%20the%20folder%20%22C%3A%5CUsers%5C%25username%25%5CAppData%5CLocal%5CPackages%5CMicrosoft.AAD.BrokerPlugin_*%20%22%3C%2FP%3E%3CP%3EAfter%20deleting%20this%20folder%20al%20settings%20are%20removed.%3C%2FP%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
Highlighted
New 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

 

 
 
 
 
3 Replies
Highlighted

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...

 

Highlighted
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.

 
 
Highlighted

@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