Start by identifying which product is actually prompting for the sign-in. In many cases, the account is attached to a Microsoft app, a Windows profile, or a work/school connection rather than Windows Security itself. This guide separates the common prompts so you can follow the removal path that matches the product that generated the request.
Steps to disassociate your account
What you’ll need
- A Windows PC with access to Settings and the notification area.
- The Microsoft account sign-in details, if you may need to sign out and back in.
- Access to the Microsoft account management page at account.microsoft.com/account.
- Permission to remove saved credentials in Windows Credential Manager.
- If OneDrive or Edge is linked, access to those apps’ account settings.
Unlink microsoft account from decision table
| Which product generated the prompt? | Symptom | Likely account link location | Exact removal action | Fallback if the unlink button fails | No-account-needed outcome |
|---|---|---|---|---|---|
| Microsoft Defender app on Windows/mobile | The app asks you to sign in again after you close it or reopen it | Microsoft account sign-in session used by the app | Sign out of the Defender app, then sign in again only if that app feature needs it | Clear the saved sign-in entry in Windows Credential Manager if the prompt keeps returning | Local Defender protection can stay available when the prompt is coming from a cloud-linked feature rather than the core protection layer |
| Windows Security notification | Defender-style prompts return after you close them | Windows account settings, work/school connection, or cached credentials rather than a Defender unlink setting | Open Settings > Accounts > Email & accounts and remove the Microsoft account, then check Settings > Accounts > Access work or school for any extra connection | Remove the saved credential in Control Panel > Credential Manager > Windows Credentials, then restart Windows | Windows Security can still run without a Microsoft account when the prompt is caused by another linked app or connection |
| Edge profile | Edge keeps showing the account in the profile list | Microsoft Edge profile linked accounts setting | Open Edge profile settings and use the linked accounts or sign-out option for that profile | Sign out of the profile, close Edge, reopen it, and remove the profile account again | Edge can be used without keeping a Microsoft account linked to the profile |
| OneDrive | OneDrive asks you to re-link the same account | OneDrive account tab in the cloud app from the notification area | Use the OneDrive cloud icon in the notification area, open Settings, then the Account tab, and choose Unlink this PC | Delete PreSignInSettingsConfig.json from the OneDrive settings folder, then sign in again | OneDrive can stay unlinked while Windows Security remains installed and active |
Why Defender keeps asking you to sign in?
That prompt usually means a Microsoft account is still linked in one place, even after you removed it somewhere else. In practice, the message is often caused by Microsoft apps, a Windows account entry, or a work/school connection rather than a direct Windows Security “unlink” setting. Microsoft Defender is set up as a security app with built-in app protections, and some Microsoft security features use account sign-in while other local Defender functions do not. The repeated prompt is often a sync or credential issue.
Check the account link source
- Open account settings. Go to Settings > Accounts > Email & accounts. Remove any Microsoft account listed under accounts used by other apps, then check Settings > Accounts > Access work or school for a work or school connection that may still be active. This is one of the main places Windows stores account links for apps.
- Inspect the notification area. Open the Windows notification area, then launch any linked Microsoft app from its tray icon if present. OneDrive uses the cloud icon there, and that is where its unlink flow starts. (Microsoft Support)
- Check Microsoft account settings. Open account.microsoft.com/account and review the account, help, privacy, and terms links. If the same account still appears in connected services, remove the app link there too.
Say your laptop shows a Defender-style sign-in prompt after a Windows restart, but the account is already gone from Email & accounts. The next place to check is the saved credential store, because Windows can sometimes keep an old token even after the visible account entry disappears. That is more common than a direct Defender unlink setting.
How do you remove the account link?
Use the app that actually owns the link, then remove the saved sign-in data Windows keeps behind it. For OneDrive, that means the notification area and the Account tab. For Edge, it means the profile’s linked accounts setting. For Windows security prompts, it means account settings, work/school connections, and saved credentials rather than a Defender-specific unlink control.
Follow the app that holds the link
- Remove the app link first. If the prompt comes from OneDrive, open the cloud icon in the notification area, choose Settings, open the Account tab, and select Unlink this PC. If the prompt comes from Edge, open the profile menu and remove the linked Microsoft account from profile settings.
- Remove the Windows account entry. Go to Settings > Accounts > Email & accounts, then remove the Microsoft account under the section for accounts used by other apps. If this is a work or school device, check Access work or school too.
- Clear saved credentials. Press Windows key + R, type control /name Microsoft.CredentialManager, and press Enter. Open Windows Credentials, remove entries tied to Microsoft, OneDrive, Edge, or sign-in services, then restart.
Clear the cached sign-in token
- Open the account page. Visit account.microsoft.com/account and confirm the account is still active and not blocked by a policy change. If another device is signing in with the same account, disconnect it first.
- Re-authenticate only if needed. Sign out of the affected app, close it, then sign back in once. That reset often refreshes a stale token without changing the rest of the Windows profile.
- Restart Windows. A reboot clears temporary sign-in state that may survive app closure. If the prompt returns immediately, move to the overlap check below.
What if the unlink button does nothing?
If an unlink button exists but does nothing, the app is usually holding a stale session or a second Microsoft connection. That is common in Edge profile links and can also happen after OneDrive or security prompts keep reusing cached credentials. The fix is to remove the saved sign-in state, then try the unlink path again.
Reset the stale session
- Sign out completely. In the affected app, sign out of the Microsoft account, then close the app. Reopen it and try the unlink action again from the same settings page.
- Remove cached credentials. Press Windows key + R, open Credential Manager with control /name Microsoft.CredentialManager, and delete saved Microsoft and OneDrive entries that match the account name or service label.
- Check for overlap. Open Settings > Accounts > Access work or school and remove any work or school account if it should not be linked. A personal account and an organization account can sometimes conflict and keep the prompt appearing.
Suppose Edge shows the correct profile, but the linked accounts section keeps the same Microsoft account after you click unlink. A full sign-out, followed by clearing the cached entry in Credential Manager, often changes the result more than clicking the button again and again.
Handle OneDrive cleanup next
- Use the OneDrive account tab. Open the OneDrive cloud in the notification area, go to Settings > Account, and choose Unlink this PC. That is the standard Windows unlink flow for OneDrive.
- Clear OneDrive’s sign-in file. If the unlink flow fails, Microsoft advises deleting PreSignInSettingsConfig.json from the OneDrive settings folder. Then open OneDrive again and sign in only if you still want the account linked.
Can you use Defender without a Microsoft account?
Some Microsoft Defender protection can run without a Microsoft account, since not every local Defender function depends on sign-in. The account dependency matters more for Microsoft security and cloud-linked features. If the account is only being used by OneDrive, Edge, or another Microsoft app, removing that link may not disable the local protection layer.
Keep Defender active and remove only the link
- Leave Windows security in place. Do not remove the Windows security app or turn off built-in protections unless a policy or admin tool requires it.
- Remove only the Microsoft account link. Use Settings > Accounts > Email & accounts and Access work or school to remove the account entries that are tied to apps, sign-in prompts, or sync.
- Reopen the security app. If a prompt remains, sign out of the Microsoft account in the app that triggered it, then sign back in only if that feature needs it.
How do you stop a personal Microsoft account from being linked to work apps?
Remove the personal account from the app profile first, then remove it from Windows account settings if it was added there. Work apps often reuse the same Microsoft sign-in surface, so a personal account can remain visible after you think it is gone. The fix is to clear both the app and the Windows connection.
Separate work and personal accounts
- Open the work app profile. In Edge or another Microsoft app, open the profile or account menu and remove the personal Microsoft account from linked accounts.
- Check Windows account pages. Go to Settings > Accounts > Email & accounts and Settings > Accounts > Access work or school. Remove the personal account only if it is listed there and not needed for another app.
- Sign out and back in. Sign out of the work app, close it, then sign back in with the work account. That refreshes the sign-in state after account cleanup.
A common mistake is signing out of Windows Defender without also disconnecting the Microsoft account in Windows settings. The app still sees the cached token, so the same personal address reappears on the next launch.
Common mistakes
- Removing the Microsoft account from one app but leaving it in Settings > Accounts.
- Forgetting Access work or school when a work profile is also connected.
- Skipping Credential Manager, which can preserve the old sign-in token.
- Using the wrong unlink path, such as trying Edge steps for a OneDrive issue.
- Signing in again too soon, before Windows has restarted and cleared the stale session.
Frequently asked questions
How do I unlink my Microsoft account from Windows Defender?
There usually is not a direct Windows Defender unlink button. Start with Settings > Accounts > Email & accounts, remove the Microsoft account, then open control /name Microsoft.CredentialManager from Windows key + R and delete related Windows Credentials. If the prompt comes from OneDrive or Edge instead, remove the link there first, then restart Windows.
Why does Microsoft Defender keep asking you to sign in?
A sign-in prompt usually means a Microsoft account is still attached in another place, such as a Windows account page, a linked Edge profile, or a OneDrive session. Remove the account from the app that owns the prompt, then clear cached credentials and reopen the app.
Can you use Windows Defender without a Microsoft account?
Yes, local Defender protection can remain available without a Microsoft account. If a cloud-linked feature needs sign-in, keep the account only for that feature. Otherwise, remove the account from Settings > Accounts and leave the security app installed.
Where do I remove a Microsoft account from Windows security settings?
Start with Settings > Accounts > Email & accounts, then check Settings > Accounts > Access work or school. If the sign-in still appears, open Control Panel > Credential Manager > Windows Credentials and remove the matching saved entry.
Does unlinking an account in OneDrive also unlink it from Defender?
No. OneDrive unlinking uses the cloud icon in the notification area, the Account tab, and the Unlink this PC action. That does not automatically remove a Microsoft account from Windows security prompts, Edge, or other Microsoft apps.
What should I do if the unlink button does nothing?
Sign out of the app, close it, and remove the saved Microsoft credentials in Credential Manager. Then check for a work or school overlap in Settings > Accounts > Access work or school. If the problem is OneDrive, delete PreSignInSettingsConfig.json from the OneDrive settings folder and try again.