Work or school account disappeared from user account on a Azure AD joined device

%3CLINGO-SUB%20id%3D%22lingo-sub-1171918%22%20slang%3D%22en-US%22%3ERe%3A%20Work%20or%20school%20account%20disappeared%20from%20user%20account%20on%20a%20Azure%20AD%20joined%20device%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1171918%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3205%22%20target%3D%22_blank%22%3E%40Michiel%20van%20den%20Broek%3C%2FA%3Eif%20you%20don't%20mind%2C%20try%20clearing%20your%20credential%20manager%20completely.%20You%20can%20do%20this%20with%20the%20following%20command.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3Efor%20%2FF%20%22tokens%3D1%2C2%20delims%3D%20%22%20%25G%20in%20('cmdkey%20%2Flist%20%5E%7C%20findstr%20Target')%20do%20%20cmdkey%20%2Fdelete%20%25H%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMaybe%20you%20can%20try%20to%20remove%20your%20license%20from%20Office%20-%20hoping%20it%20would%20trigger%20the%20login%20window.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice%2Ftroubleshoot%2Factivation%2Freset-office-365-proplus-activation-state%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice%2Ftroubleshoot%2Factivation%2Freset-office-365-proplus-activation-state%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1171148%22%20slang%3D%22en-US%22%3EWork%20or%20school%20account%20disappeared%20from%20user%20account%20on%20a%20Azure%20AD%20joined%20device%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1171148%22%20slang%3D%22en-US%22%3E%3CP%3EMy%20laptop%20is%20joined%20to%20my%20Office%20365%20Azure%20Active%20Directory.%20I%20sign%20in%20to%20it%20with%20my%20Azure%20AD%20Credentials%2C%20so%20the%20primary%20account%20is%20my%20Work%20or%20School%20Account.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYesterday%2C%20I%20noticed%20my%20Outlook%20was%20asking%20me%20for%20my%20password.%20Clicking%20on%20it%20briefly%20showed%20a%20sign%20in%20screen%2C%20but%20no%20way%20to%20use%20it.%20When%20I%20further%20investigated%20it%2C%20I%20noticed%20that%20my%20Windows%20User%20Account%20didn't%20have%20my%20Work%20or%20School%20Account%20connected%20anymore%20(Settings%20-%26gt%3B%20Accounts%20-%26gt%3B%20Email%20%26amp%3B%20Accounts).%20Outlook%20uses%20this%20to%20sign%20in%20to%20my%20email%20account.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20adding%20it%2C%20but%20the%20link%20%22Add%20a%20work%20or%20school%20account%22%20doesn't%20work%20(where%20%22Add%20a%20Microsoft%20Account%22%20does).%20The%20laptop%20is%20still%20connected%20to%20my%20Azure%20AD%20domain%2C%20so%20%22Connect%22%20on%20the%20%22Access%20work%20or%20school%22%20screen%20tells%20me%20%22Your%20device%20is%20already%20connected%20to%20your%20organisation%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20I%20tried%20all%20this%20I%20cleared%20all%20Office%2C%20Onedrive%20and%20Microsoft%20Teams%20from%20the%20Windows%20Credentials%20in%20the%20Credential%20Manager.%20Hoping%20it%20would%20trigger%20a%20signin%20page%20and%20with%20it%20adding%20the%20work%20account%20back%20to%20my%20Windows%20account.%20I%20must%20have%20forgotten%20(not%20recognized)%20one%2C%20because%20Microsoft%20Teams%2C%20the%20Office%20programs%20and%20OneDrive%20still%20work....%20didn't%20need%20to%20sign%20in%20again.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDon't%20know%20how%20to%20describe%20this%20problem%2C%20so%20Googlin...%20I%20mean...%20Bingin%20it%20doesn't%20give%20any%20results.....%20Just%20sites%20that%20explain%20how%20to%20connect%20or%20disconnect%20an%20account%2C%20but%20not%20related%20to%20my%20problem...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20ideas%20how%20to%20fix%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1171148%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Frequent Contributor

My laptop is joined to my Office 365 Azure Active Directory. I sign in to it with my Azure AD Credentials, so the primary account is my Work or School Account.

 

Yesterday, I noticed my Outlook was asking me for my password. Clicking on it briefly showed a sign in screen, but no way to use it. When I further investigated it, I noticed that my Windows User Account didn't have my Work or School Account connected anymore (Settings -> Accounts -> Email & Accounts). Outlook uses this to sign in to my email account.

 

I tried adding it, but the link "Add a work or school account" doesn't work (where "Add a Microsoft Account" does). The laptop is still connected to my Azure AD domain, so "Connect" on the "Access work or school" screen tells me "Your device is already connected to your organisation".

 

After I tried all this I cleared all Office, Onedrive and Microsoft Teams from the Windows Credentials in the Credential Manager. Hoping it would trigger a signin page and with it adding the work account back to my Windows account. I must have forgotten (not recognized) one, because Microsoft Teams, the Office programs and OneDrive still work.... didn't need to sign in again.

 

Don't know how to describe this problem, so Googlin... I mean... Bingin it doesn't give any results..... Just sites that explain how to connect or disconnect an account, but not related to my problem...

 

Any ideas how to fix this?

1 Reply

@Michiel van den Broekif you don't mind, try clearing your credential manager completely. You can do this with the following command.

 

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

 

Maybe you can try to remove your license from Office - hoping it would trigger the login window.

https://docs.microsoft.com/en-us/office/troubleshoot/activation/reset-office-365-proplus-activation-...

 

Thank you.