How to unlink a device from an organization that is completely not registered on the device?

Mylan Diederiks 0 Reputation points
2026-08-05T22:19:56.8+00:00

I know it sounds crazy but I logged into my school account once and now my device is seemingly phantom-linked with the organization. It does not allow me to log into my personal account so I can manage it.

Microsoft 365 and Office | Install, redeem, activate | For education | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. Darren Bruce 650 Reputation points Independent Advisor
    2026-08-06T02:37:30.5966667+00:00

    Dear @Mylan Diederiks,

    Based on your description, it sounds like the device may still be associated with your school's organization even though the school account is no longer visible on the device. 

    Here are some suggestions you can try:

    1. Check for Work or School account connections

    Open Settings > Accounts > Access work or school.

    • If the school account or organization is listed: Select it > Choose Disconnect.
    • Restart the device and test again.
    1. Verify device registration status

    Open Command Prompt as Administrator and run:

    dsregcmd /status
    
    
    

    Check the following values:

    AzureAdJoined
    EnterpriseJoined
    WorkplaceJoined
    

    If any of these show YES, the device may still be registered with the organization.

    To remove the registration, run:

    dsregcmd /leave
    
    

    Then restart the device.

    1. Remove cached account credentials
    2. Open Control Panel > Credential Manager.
    3. Select Windows Credentials.
    4. Remove any entries related to:
    • Azure AD / Entra ID
    • Microsoft Office using the school account
      • The school's domain

    Also check:

    Settings > Accounts > Email & accounts > Accounts used by other apps

    Remove the school account if it is still present.

    If you have tried all the methods above but still cannot resolve the issue, please provide me more information as: Does it appear any error message of the issue? So I can support you more effectively.

    Looking forward to your update.


    If the answer is helpful, please click "Yes". If you have extra questions about this answer, please click "Comment".   

    Note: Please follow the steps in the forum documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 

    Was this answer helpful?


  2. AI answer

    2026-08-05T22:20:13.5366667+00:00

    If the device was linked when the school account was added once, the usual local removal path is:

    1. Open Settings > Accounts > Access work or school.
    2. If the school account appears there, select it and choose Disconnect.
    3. Restart the PC.
    4. If prompted again in a Microsoft 365 app later, choose No, this app only so the account signs in only to that app and the device is not added to Windows or registered in the organization directory.

    If the account does not appear on the device, check the connected devices page for the work or school account:

    1. Sign in to https://myaccount.microsoft.com/ with the school account.
    2. Go to Devices.
    3. If the PC is listed, select Disable.

    Important: disabling a device cannot be undone by the user. The organization’s administrator must add it again if disabled by mistake.

    If access to the school account is no longer available and the device still behaves as if it is tied to that organization, removal may require the organization administrator to remove the account or device association from their tenant.


    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

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