Remove Duplicate Work or School Account

Jared Mello 0 Reputation points
2024-10-25T15:02:52.7333333+00:00

On a lot of our company PCs, we have two identical Entra ID accounts which is causing a conflict and giving users lots of error messages related to "Verifying their account" or "Work or School Account Sign-In". Does anyone know how to remove just one of these without removing the other. Of course doing it through the actual settings page would remove the windows profile and require local sign in. I'm looking for a more creative way like Powershell or registry. Thanks!

Apologies for having to black out the emails for privacy concerns, you can trust me when I say they are all the same email address

Screenshot 2024-10-25 105902

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Windows for business | Windows Client for IT Pros | User experience | Other
{count} votes

1 answer

Sort by: Most helpful
  1. S.Sengupta 24,636 Reputation points MVP
    2024-10-27T01:27:45.53+00:00

    Dsregcmd /status" will tell you the devices status in Azure AD and even your local domain.

    Open PowerShell as administrator and type:

    dsregcmd /status

    To remove an Azure AD account without affecting the local profile:

    Remove-AzureADUser -ObjectId "<UserObjectId>"

    Replace <UserObjectId> with the specific user’s Object ID that you want to remove.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.