Forum Discussion

Thomsch's avatar
Thomsch
Iron Contributor
May 04, 2020
Solved

Office 365 Usercredentials are cached

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.

 

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

  • 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-joined-device-locally-on-the-device

1 Reply

  • Joe Stocker's avatar
    Joe Stocker
    Bronze Contributor
    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-joined-device-locally-on-the-device

Resources