MS Teams Shared PC Force Logout / Clear Credentials

%3CLINGO-SUB%20id%3D%22lingo-sub-59654%22%20slang%3D%22en-US%22%3EMS%20Teams%20Shared%20PC%20Force%20Logout%20%2F%20Clear%20Credentials%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-59654%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20would%20like%20to%20use%20MS%20Teams%20in%20the%20meeting%20rooms%20on%20shared%20PCs%20(Setup%20as%20room%20resource%20accounts).%20Users%20forget%20to%20logout%20of%20teams.%20Is%20there%20a%20way%20for%20us%20to%20find%20and%20delete%20the%20credentials%20on%20our%20room%20reset%20batch%20files%3F%20Currently%2C%20if%20you%20use%20Teams%20and%20close%20it%2C%20it%20then%20opens%20with%20last%20credentials.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAn%20option%20is%20to%20have%20them%20use%20the%20online%20version%20but%20many%20prefer%20desktop%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-59654%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESettings%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-324842%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Shared%20PC%20Force%20Logout%20%2F%20Clear%20Credentials%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-324842%22%20slang%3D%22en-US%22%3E%3CP%3EThere's%20a%20SignOut%20button%2C%20which%20mostly%20works.%20In%20case%20it%20doesn't%2C%20you%20will%20have%20to%20clear%20the%20local%20cache%2C%20credentials%20stored%20in%20Cred%20manager%20and%20the%20cookies%2Fbrowser%20cache.%20Here's%20an%20extensive%20list%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%0A%3CP%3E%3CSPAN%20style%3D%22background%3A%20white%3B%22%3E1.%26nbsp%3B%20Fully%20exit%20the%20Microsoft%20Teams%20desktop%20client.%20To%20do%20this%2C%20either%20right%20click%20Teams%20from%20the%20Icon%20Tray%20and%20select%20%E2%80%98Quit%E2%80%99%2C%20or%20run%20Task%20Manager%20and%20fully%20kill%20the%20process.%3CBR%20%2F%3E2.%26nbsp%3B%20Go%20to%20File%20Explorer%2C%20and%20type%20in%20%25appdata%25%5CMicrosoft%5Cteams.%3CBR%20%2F%3E3.%26nbsp%3B%20Once%20in%20the%20directory%2C%20you%E2%80%99ll%20see%20a%20few%20of%20the%20following%20folders%3A%3CBR%20%2F%3Ea.%26nbsp%3B%20From%20within%20%E2%80%98Application%20Cache%E2%80%99%2C%20go%20to%20Cache%20and%20delete%20any%20of%20the%20files%20in%20the%20Cache%20location.%3CBR%20%2F%3E*%26nbsp%3B%20%25appdata%25%5CMicrosoft%5Cteams%5Capplication%20cache%5Ccache%3CBR%20%2F%3Eb.%26nbsp%3B%20From%20within%20%E2%80%98Blob_storage%E2%80%99%2C%20delete%20any%20files%20that%20are%20located%20in%20here%20if%20any.%3CBR%20%2F%3E*%26nbsp%3B%26nbsp%3B%20%25appdata%25%5CMicrosoft%5Cteams%5Cblob_storage%3CBR%20%2F%3Ec.%26nbsp%3B%20From%20within%20%E2%80%98Cache%E2%80%99%2C%20delete%20all%20files.%3CBR%20%2F%3E*%26nbsp%3B%26nbsp%3B%20%25appdata%25%5CMicrosoft%5Cteams%5CCache%3CBR%20%2F%3Ed.%26nbsp%3B%20From%20within%20%E2%80%98databases%E2%80%99%2C%20delete%20all%20files.%3CBR%20%2F%3E*%26nbsp%3B%26nbsp%3B%20%25appdata%25%5CMicrosoft%5Cteams%5Cdatabases%3CBR%20%2F%3Ee.%26nbsp%3B%20From%20within%20%E2%80%98GPUCache%E2%80%99%2C%20delete%20all%20files.%3CBR%20%2F%3E*%26nbsp%3B%26nbsp%3B%20%25appdata%25%5CMicrosoft%5Cteams%5CGPUcache%3CBR%20%2F%3Ef.%26nbsp%3B%20From%20within%20%E2%80%98IndexedDB%E2%80%99%2C%20delete%20the%20.db%20file.%3CBR%20%2F%3E*%26nbsp%3B%26nbsp%3B%20%25appdata%25%5CMicrosoft%5Cteams%5CIndexedDB%3CBR%20%2F%3Eg.%26nbsp%3B%20From%20within%20%E2%80%98Local%20Storage%E2%80%99%2C%20delete%20all%20files.%3CBR%20%2F%3E*%26nbsp%3B%26nbsp%3B%20%25appdata%25%5CMicrosoft%5Cteams%5CLocal%20Storage%3CBR%20%2F%3Eh.%26nbsp%3B%20Lastly%2C%20from%20within%20%E2%80%98tmp%E2%80%99%2C%20delete%20any%20file.%3CBR%20%2F%3E*%26nbsp%3B%26nbsp%3B%20%25appdata%25%5CMicrosoft%5Cteams%5Ctmp%3CBR%20%2F%3EOnce%20finally%20done%20clearing%2C%20you%20can%20now%20restart%20Teams%20from%20your%20local%20desktop%20and%20all%20cache%20will%20be%20cleared%20from%20the%20desktop%20app.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMight%20be%20easier%20to%20just%20use%20the%20browser%20client%2C%20in%20a%20Private%20session.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-324691%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Shared%20PC%20Force%20Logout%20%2F%20Clear%20Credentials%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-324691%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20found%20that%20clearing%20these%20files%2Fkeys%3C%2FP%3E%3CUL%3E%3CLI%3EHKEY_CURRENT_USER%5CSoftware%5CMicrosoft%5COffice%5CTeams%3C%2FLI%3E%3CLI%3E%25appdata%25%5CMicrosoft%5CTeams%3C%2FLI%3E%3CLI%3E%25localappdata%25%5CMicrosoft%5CWindows%5CINetCache%5CIE%3C%2FLI%3E%3C%2FUL%3E%3CP%3EStill%20doesn't%20log%20the%20user%20out.%20I%20am%20still%20looking...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-962938%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Shared%20PC%20Force%20Logout%20%2F%20Clear%20Credentials%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-962938%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20I%20logout%20from%20the%20App%20Teams%20on%20the%20iPad%3F%20Even%20if%20I%20use%20the%20logout%20button%2C%20my%20credentials%20are%20saved.%20By%20clicking%20on%20my%20account%20I%20am%20immediately%20logged%20in%20again.%20How%20can%20I%20definitely%20clear%20my%20credentials%20i.e.%20on%20a%20device%20of%20a%20colleague%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1734612%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Shared%20PC%20Force%20Logout%20%2F%20Clear%20Credentials%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1734612%22%20slang%3D%22en-US%22%3EI%20had%20this%20problem%20and%20resolved%20the%20problem%20accessing%3CBR%20%2F%3E%25appdata%25%5CMicrosoft%5Cteams%3CBR%20%2F%3E%3CBR%20%2F%3Edelete%20or%20rename%20this%20file%20-%20desktop-config.json%3CBR%20%2F%3E%3CBR%20%2F%3EI%20hope%20it%20helps%20everyone.%3CBR%20%2F%3EThanks%3CBR%20%2F%3ENathan%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1797816%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Shared%20PC%20Force%20Logout%20%2F%20Clear%20Credentials%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1797816%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20.bat%20file%20with%20the%20following%20might%20work%3F%20Except%20it%20doesnt'%20take%20care%20of%20the%20Credential%20Manager.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-basic%22%3E%3CCODE%3E%40echo%0Acls%0Ataskkill%20%2FIM%20Teams.exe%20%2FT%20%2FF%0A%0A%40DEL%20%2FS%20%2FQ%20%22%25appdata%25%22%5CMicrosoft%5Cteams%5Capplication%20cache%5Ccache%5C*.*%0A%40DEL%20%2FS%20%2FQ%20%22%25appdata%25%22%5CMicrosoft%5Cteams%5Cblob_storage%5C*.*%0A%40DEL%20%2FS%20%2FQ%20%22%25appdata%25%22%5CMicrosoft%5Cteams%5CGPUcache%5C*.*%0A%40DEL%20%2FS%20%2FQ%20%22%25appdata%25%22%5CMicrosoft%5CTeams%5CIndexDB%5C*.*%0A%40DEL%20%2FS%20%2FQ%20%22%25appdata%25%22%5CMicrosoft%5CTeams%5CCache%5C*.*%0A%40DEL%20%2FS%20%2FQ%20%22%25appdata%25%22%5CMicrosoft%5CTeams%5Cdatabases%5C*.*%0A%40DEL%20%2FS%20%2FQ%20%22%25appdata%25%22%22%5CMicrosoft%5CTeams%5CLocal%20Storage%5C%22*.*%0A%40DEL%20%2FS%20%2FQ%20%22%25appdata%25%22%5CMicrosoft%5Cteams%5Ctmp%5C*.*%0A%0AStart%20%22%22%20%22%25LocalAppData%25%22%5CMicrosoft%5CTeams%5CUpdate.exe%20--processStart%20%22Teams.exe%22%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1854980%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Shared%20PC%20Force%20Logout%20%2F%20Clear%20Credentials%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1854980%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F48366%22%20target%3D%22_blank%22%3E%40Angela%20Hlavka%3C%2FA%3E%26nbsp%3BI%20hope%20you%20all%20still%20need%20to%20solve%20this%20problem%20%3AD%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20an%20actual%20solution.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3EClose%20Teams.%20Quit.%20kill%20-9.%20Whatever.%3C%2FLI%3E%3CLI%3EBe%20sure%20the%20device%20is%20not%20registered%20in%20AAD%20and%20if%20it%20is%2C%20delete%20it.%3C%2FLI%3E%3CLI%3EDisconnect%20any%20account%20from%20the%20device.%20%3CSTRONG%3EStart%3C%2FSTRONG%3E%3CSPAN%3E%26gt%3B%3C%2FSPAN%3E%3CSTRONG%3ESettings%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3E%26gt%3B%3C%2FSPAN%3E%3CSTRONG%3EAccounts%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3E%26gt%3B%3C%2FSPAN%3E%3CSTRONG%3EAccess%20work%20or%20school%26nbsp%3B%3C%2FSTRONG%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%26nbsp%3BStart%20Teams%20and%20Log%20in.%20It%20should%20ask%20for%20your%20username%20and%20password.%3C%2FLI%3E%3CLI%3EAfter%20you%20entered%20your%20password%20the%20%22Stay%20singned%20in%20all%20apps%22%20window%20pops.%3C%2FLI%3E%3CLI%3EUncheck%20%22Allow%20my%20org%20to%20manage%20my%20device%22%20and%20clic%20%22No%2C%20sign%20in%20to%20this%20app%20only%22.%3C%2FLI%3E%3CLI%3ENow%20Teams%20starts%20as%20usual.%26nbsp%3B%3C%2FLI%3E%3CLI%3ELogout%20and%20try%20to%20login%20again.%20You%20should%20go%20back%20to%20step%204.%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20actually%20preparing%20a%20full%20size%20poster%20with%20this%20instructions%20to%20paste%20it%20in%20the%20coference%20room%20main%20door.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20many%20times%20and%20it%20works%20everytime.%20Let%20me%20know%20if%20it%20works%20for%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1883096%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Shared%20PC%20Force%20Logout%20%2F%20Clear%20Credentials%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1883096%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%26nbsp%3B%3CBR%20%2F%3EI%20signed%20into%20Teams%20desktop%20app%20%2C%20then%20signed%20out%20%2C%20then%20when%20I%20came%20to%20sign%20in%20again%20%2C%20I%20put%20my%20email%20then%20it%20signed%20me%20in%20without%20asking%20for%20password%2C%20any%20idea%20how%20to%20disable%20this%20thing%3F%20as%20it's%20unsecured%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1899093%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Shared%20PC%20Force%20Logout%20%2F%20Clear%20Credentials%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1899093%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F229817%22%20target%3D%22_blank%22%3E%40Marconi%20Poveda%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20was%20the%20solution%20for%20me.%3C%2FP%3E%3CP%3EI%20had%20a%20very%20slow%20Teams%20login%20proces.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGreat%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2038415%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Shared%20PC%20Force%20Logout%20%2F%20Clear%20Credentials%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2038415%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F229817%22%20target%3D%22_blank%22%3E%40Marconi%20Poveda%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20Marconi.%20Can%20you%20explain%20how%20step%203%20works%3F%20I%20am%20trying%20to%20disconnect%20a%20work%20account%20from%20one%20of%20my%20pc's%2C%20since%20I%20now%20only%20want%20to%20store%20its%20credentials%20on%20another%20pc%2C%20but%20there's%20no%20%22remove%22%20button%20next%20to%20it%2C%20only%20next%20to%20my%20primary%20account.%20How%20do%20I%20disconnect%3F%20What%20did%20you%20do%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Regular Visitor

We would like to use MS Teams in the meeting rooms on shared PCs (Setup as room resource accounts). Users forget to logout of teams. Is there a way for us to find and delete the credentials on our room reset batch files? Currently, if you use Teams and close it, it then opens with last credentials. 

 

An option is to have them use the online version but many prefer desktop

 

Thanks 

8 Replies

I have found that clearing these files/keys

  • HKEY_CURRENT_USER\Software\Microsoft\Office\Teams
  • %appdata%\Microsoft\Teams
  • %localappdata%\Microsoft\Windows\INetCache\IE

Still doesn't log the user out. I am still looking...

There's a SignOut button, which mostly works. In case it doesn't, you will have to clear the local cache, credentials stored in Cred manager and the cookies/browser cache. Here's an extensive list:

 


1.  Fully exit the Microsoft Teams desktop client. To do this, either right click Teams from the Icon Tray and select ‘Quit’, or run Task Manager and fully kill the process.
2.  Go to File Explorer, and type in %appdata%\Microsoft\teams.
3.  Once in the directory, you’ll see a few of the following folders:
a.  From within ‘Application Cache’, go to Cache and delete any of the files in the Cache location.
*  %appdata%\Microsoft\teams\application cache\cache
b.  From within ‘Blob_storage’, delete any files that are located in here if any.
*   %appdata%\Microsoft\teams\blob_storage
c.  From within ‘Cache’, delete all files.
*   %appdata%\Microsoft\teams\Cache
d.  From within ‘databases’, delete all files.
*   %appdata%\Microsoft\teams\databases
e.  From within ‘GPUCache’, delete all files.
*   %appdata%\Microsoft\teams\GPUcache
f.  From within ‘IndexedDB’, delete the .db file.
*   %appdata%\Microsoft\teams\IndexedDB
g.  From within ‘Local Storage’, delete all files.
*   %appdata%\Microsoft\teams\Local Storage
h.  Lastly, from within ‘tmp’, delete any file.
*   %appdata%\Microsoft\teams\tmp
Once finally done clearing, you can now restart Teams from your local desktop and all cache will be cleared from the desktop app.


 

Might be easier to just use the browser client, in a Private session.

@Vasil Michev 

How can I logout from the App Teams on the iPad? Even if I use the logout button, my credentials are saved. By clicking on my account I am immediately logged in again. How can I definitely clear my credentials i.e. on a device of a colleague?

I had this problem and resolved the problem accessing
%appdata%\Microsoft\teams

delete or rename this file - desktop-config.json

I hope it helps everyone.
Thanks
Nathan

@Vasil Michev 

 

A .bat file with the following might work? Except it doesnt' take care of the Credential Manager.

 

@echo
cls
taskkill /IM Teams.exe /T /F

@DEL /S /Q "%appdata%"\Microsoft\teams\application cache\cache\*.*
@DEL /S /Q "%appdata%"\Microsoft\teams\blob_storage\*.*
@DEL /S /Q "%appdata%"\Microsoft\teams\GPUcache\*.*
@DEL /S /Q "%appdata%"\Microsoft\Teams\IndexDB\*.*
@DEL /S /Q "%appdata%"\Microsoft\Teams\Cache\*.*
@DEL /S /Q "%appdata%"\Microsoft\Teams\databases\*.*
@DEL /S /Q "%appdata%""\Microsoft\Teams\Local Storage\"*.*
@DEL /S /Q "%appdata%"\Microsoft\teams\tmp\*.*

Start "" "%LocalAppData%"\Microsoft\Teams\Update.exe --processStart "Teams.exe"

@Angela Hlavka I hope you all still need to solve this problem :D

 

This is an actual solution.

 

  1. Close Teams. Quit. kill -9. Whatever.
  2. Be sure the device is not registered in AAD and if it is, delete it.
  3. Disconnect any account from the device. Start>Settings >Accounts >Access work or school .
  4.  Start Teams and Log in. It should ask for your username and password.
  5. After you entered your password the "Stay singned in all apps" window pops.
  6. Uncheck "Allow my org to manage my device" and clic "No, sign in to this app only".
  7. Now Teams starts as usual. 
  8. Logout and try to login again. You should go back to step 4.

 

I'm actually preparing a full size poster with this instructions to paste it in the coference room main door.

 

I tried many times and it works everytime. Let me know if it works for you.

Hi, 
I signed into Teams desktop app , then signed out , then when I came to sign in again , I put my email then it signed me in without asking for password, any idea how to disable this thing? as it's unsecured 

@Marconi Poveda 

 

This was the solution for me.

I had a very slow Teams login proces.

 

Great