Fix Microsoft Defender Sign-In Error After Signing Out of All Devices
Question details
The user is experiencing a sign-in error in Microsoft Defender after signing out of all devices and attempting to log back in.

- Product
- Microsoft Defender
- Device & OS
- Windows
- Scenario
- Attempting to reconnect and sign in to Microsoft Defender on a device following a global account sign-out.
- Observed behavior
- Microsoft Defender displays a username error, preventing successful login, likely caused by cached credentials or an account type mismatch.
Verify whether you are using a personal Microsoft account or an organizational (work or school) account, and ensure you have the correct password on hand.
Clear Cached Windows Credentials and Disconnect Unwanted Accounts
Use this method to remove outdated or corrupted login tokens that are causing the username error.
When you sign out of all devices, Windows may still hold onto outdated login sessions in its local cache. Clearing the Credential Manager and removing unwanted school or work accounts forces the system to authenticate freshly.
Open the Windows Start menu, go to Settings > Accounts > Access work or school. If you are using a personal account, click on any linked organizational accounts and select 'Disconnect'.
Press the Windows key, type 'Credential Manager' into the search bar, and hit Enter to launch the Control Panel applet.
Click on the 'Windows Credentials' tab to view all saved local and network passwords.
Scroll down to 'Generic Credentials'. Locate any entries that start with 'MicrosoftAccount' or 'MicrosoftOffice'. Click the drop-down arrow next to them and select 'Remove'.
Restart your computer to apply the changes, then open Microsoft Defender and attempt to sign in again with your correct username.

Verify Account Status via Microsoft 365 Portal
Determine if the sign-in issue is local to your device or a broader problem with your Microsoft account.
Switch to WPS Office for a Hassle-Free Experience
If you are frustrated by constant Microsoft 365 sign-in prompts, account mismatches, and software glitches, consider switching to WPS Office. It provides a free, lightweight, and fully compatible alternative to Microsoft Office, letting you focus on your work without complex account management.
- 1. Download the Installer: Visit the official WPS Office website and download the free installer for Windows, Mac, or Linux.
- 2. Install in Minutes: Run the setup file and follow the quick on-screen instructions. The lightweight package installs much faster than heavier office suites.
- 3. Open Your Documents: Simply double-click your existing Microsoft Office files or right-click and choose 'Open with WPS Office' to start editing immediately.

Frequently Asked Questions
Why does Microsoft Defender say my username is incorrect when it is right?
This typically occurs when there is a conflict between a personal Microsoft account and a work or school account connected to Windows. The app may be attempting to pass an organizational credential token for a personal login, resulting in a username error.
Will clearing my Windows credentials delete my personal files?
No. The Credential Manager only stores saved passwords and authentication tokens. Removing these entries will just require you to type your password again the next time you sign into Microsoft services; your personal files will remain untouched.
How do I disconnect a work or school account in Windows?
Go to the Windows Start menu, click on Settings (the gear icon), navigate to 'Accounts', and select 'Access work or school' from the left menu. Click on the account you wish to remove and press the 'Disconnect' button.




