SOLVED

Office 365 Usercredentials are cached

%3CLINGO-SUB%20id%3D%22lingo-sub-1357003%22%20slang%3D%22en-US%22%3EOffice%20365%20Usercredentials%20are%20cached%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1357003%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20migrated%20our%20data%20from%20one%20tenant%20to%20another%20and%20a%20lot%20of%20the%20local%20user%20profiles%20still%20caches%20the%20old%20tenant%20data.%20We%20found%20that%20out%20because%20they%20had%20a%20lot%20of%20problems%20with%20the%20Teams%20client%20in%20connection%20with%20Outlook.%20Sent%20out%20Teams%20meeting%20invitations%20but%20weren't%20able%20to%20join%20the%20meetings...%3CBR%20%2F%3E%3CBR%20%2F%3EAnd%20we%20also%20figured%20out%20that%20if%20we%20are%20using%20this%20command%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3Edsregcmd%20%2Fstatus%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3Eand%20the%20%22Work%20Account%201%22%20is%20still%20using%20the%20old%20Tenant%20(Tenant%20name%2C%20Tenant%20ID).%3CBR%20%2F%3ESo%20the%20user%20has%20to%20disconnect%20here%20manually.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222020-04-30%2015_41_54-Settings.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F188639i9C7ECB7BB75C07AF%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%222020-04-30%2015_41_54-Settings.png%22%20alt%3D%222020-04-30%2015_41_54-Settings.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20is%20there%20a%20way%26nbsp%3B%20to%20do%20it%20via%20Powershell%3F%20Or%20is%20there%20any%20other%20way%20to%20do%20it%20remotely%20for%20all%20users%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1357003%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Ecache%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eproblem%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETenant%20Migration%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1396422%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Usercredentials%20are%20cached%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1396422%22%20slang%3D%22en-US%22%3EYou%20can%20only%20remove%20from%20the%20client%20device%20using%20the%20GUI.%3CBR%20%2F%3E%22Deleting%20devices%20in%20your%20on-premises%20AD%20or%20Azure%20AD%20does%20not%20remove%20registration%20on%20the%20client.%20It%20will%20only%20prevent%20access%20to%20resources%20using%20device%20as%20an%20identity%20(e.g.%20Conditional%20Access).%20Read%20additional%20information%20on%20how%20to%20remove%20registration%20on%20the%20client.%22%3CBR%20%2F%3EReference%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevices%2Fmanage-stale-devices%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevices%2Fmanage-stale-devices%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3ESee%20also%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevices%2Ffaq%23q-how-do-i-unjoin-an-azure-ad-joined-device-locally-on-the-device%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevices%2Ffaq%23q-how-do-i-unjoin-an-azure-ad-joined-device-locally-on-the-device%3C%2FA%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

We migrated our data from one tenant to another and a lot of the local user profiles still caches the old tenant data. We found that out because they had a lot of problems with the Teams client in connection with Outlook. Sent out Teams meeting invitations but weren't able to join the meetings...

And we also figured out that if we are using this command:

dsregcmd /status


and the "Work Account 1" is still using the old Tenant (Tenant name, Tenant ID).
So the user has to disconnect here manually.

2020-04-30 15_41_54-Settings.png

 

But is there a way  to do it via Powershell? Or is there any other way to do it remotely for all users?

 

Thanks in advance

1 Reply
best response confirmed by Thomsch (Frequent Contributor)
Solution
You can only remove from the client device using the GUI.
"Deleting devices in your on-premises AD or Azure AD does not remove registration on the client. It will only prevent access to resources using device as an identity (e.g. Conditional Access). Read additional information on how to remove registration on the client."
Reference: https://docs.microsoft.com/en-us/azure/active-directory/devices/manage-stale-devices

See also: https://docs.microsoft.com/en-us/azure/active-directory/devices/faq#q-how-do-i-unjoin-an-azure-ad-jo...