How can I unlink a microsoft and windows account when i can't access the windows account

sean hicks 0 Reputation points
2026-11-03T22:06:06.3166667+00:00

I recently replaced the CPU in my computer which has caused me to loose access to my windows account on this computer. I made a new account but I can't sign into my microsoft account because it is still linked to the old one. So how do I unlink the two accounts without access to the windows account?

Windows for home | Windows 11 | Accounts, profiles, and login

2 answers

Sort by: Oldest
  1. AI answer

    2026-11-03T22:07:51.31+00:00

    Recover the old Windows profile from the sign-in screen before unlinking or deleting anything, because the online device link, the Windows user profile, and Windows activation are separate associations.

    1. Try non-destructive sign-in recovery

    At the Windows 11 sign-in screen, select the old account:

    1. Select Sign-in options.
    2. Choose the password icon and enter the Microsoft account password rather than the old PIN.
    3. If that fails:
      • Select I forgot my PIN and complete account verification to create a new PIN. This option applies to Microsoft-account profiles.
      • If the password is also unavailable, select I forgot my password.
      • If offered, select Sign-in options > Web sign-in, then Forgot my password.
      • Alternatively, reset the password from another device at Reset password.^1^

    If recovery succeeds, no profile migration is required. After signing in, a Microsoft-account profile can be changed to a local profile through Settings > Accounts > Your info > Sign in with a local account instead.^2^

    2. If recovery fails, use the new account—but check administrator access first

    Being used by the old Windows profile does not normally prevent the same Microsoft account from being used elsewhere. From the new account, open:

    Settings > Accounts > Your info

    Check whether Administrator appears under the account name.

    • If it is an administrator: continue below.
    • If it is a standard account: it cannot promote itself, access protected data, or remove the old profile. Recover the old administrator account first. If no administrator account is accessible, skip to the reset fallback.

    To connect the new local administrator profile:

    1. Open Settings > Accounts > Your info.
    2. Select Sign in with a Microsoft account instead.
    3. Enter the Microsoft account credentials.
    4. Select Next > Sign out and finish, then sign back in.^2^

    If this produces an error, record its exact text or code. The old profile’s existence alone does not establish why the sign-in failed.

    3. Preserve files before removing the old profile

    From the new administrator account:

    1. Back up important data to an external drive or cloud storage.
    2. Open File Explorer > This PC > Local Disk (C:) > Users.
    3. Open the old profile folder and copy required documents into the corresponding folders under the new profile.
    4. Restart and confirm the files open correctly from the new profile.

    Microsoft’s profile-migration procedure uses the old and new folders under C:\Users; some applications may need reconfiguration or reinstallation afterward.^3^

    Only after confirming the backup:

    1. Open Settings > Accounts > Other users.
    2. Expand the old account.
    3. Next to Account and data, select Remove.

    Warning: This permanently deletes data stored in that Windows user profile. It removes the account’s sign-in information and local data from this PC; it does not delete the Microsoft account itself.^4^

    4. Handle Windows activation separately

    Do not remove the old PC from the Microsoft account’s online device list before attempting activation recovery; that old device entry may be needed to select the previous hardware association.^5^

    If Settings > System > Activation says Windows is not activated:

    1. Confirm the new account is an administrator and connected to the Internet.
    2. Select Settings > System > Activation > Troubleshoot.
    3. Select I changed hardware on this device recently.
    4. Sign in with the Microsoft account associated with the digital license.
    5. Select the applicable device, check This is the device I’m using right now, and select Activate.^6^

    5. If no administrator account is accessible

    The supported last resort is a Windows reset:

    1. At the sign-in screen, hold Shift while selecting Power > Restart.
    2. Select Troubleshoot > Reset this PC.
    3. Choose the appropriate reset option.

    A full Remove everything reset deletes personal files and applications, so use it only after recovering or backing up required data where possible.^7^


    References

    1. Change or reset your PIN in Windows | Microsoft Support
    2. Change From a Local Account to a Microsoft Account in Windows | Microsoft Support
    3. Fix a corrupted user profile | Microsoft Support
    4. Manage User Accounts in Windows | Microsoft Support
    5. Transfer of Digital Windows License from old PC to new PC - Microsoft Q&A
    6. [Windows 11](https://support.microsoft.com/windows/activation/reactivating-windows-after-a-hardware-change#link-your-windows-11-digital-license-to-your-microsoft-account)
    7. How do I force change a microsoft account that is inaccessible to me to my local account? - Microsoft Q&A
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

  2. Francisco Montilla 31,820 Reputation points Independent Advisor
    2026-11-03T23:52:26.1133333+00:00

    Hello,

    The reason you are getting that error saying another user on this device uses this microsoft account even after deleting the old profile is because Windows keeps a cache of connected Microsoft accounts in the registry. When you deleted the old account, those registry keys were left behind, so Windows still thinks the email is tied to a user on your computer.

    To fix this, you need to delete that cached identity from the Registry Editor.

    Press the Windows key and type regedit, then hit Enter to open the Registry Editor as administrator. In the left pane, navigate to HKEY_USERS, then .DEFAULT, then Software, then Microsoft, then IdentityCRL, and finally StoredIdentities. Inside the StoredIdentities folder, you will see a subfolder named with your Microsoft account email address. Right-click that email folder and select Delete.

    After you delete it, restart your computer. Once you log back into your new local account, go to your account settings and try linking your Microsoft account again. It should go through without any errors this time. Let me know how it goes!

    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.