Fix Office 365 'Your Account Is in a Bad State' Error
In this article
To fix the Office 365 “Your account is in a bad state” error, sign out of all Office apps, clear cached credentials, and sign back in. This usually resolves the issue because the error is caused by a corrupted sign-in token or profile cache. If that doesn’t work, repair Office or use the Microsoft Support and Recovery Assistant.
What You'll Need
- Your Office 365 sign-in credentials (email and password)
- Administrator access to your computer (for some steps)
- Internet connection
Step-by-Step
- Close all Office applications – Make sure Word, Excel, Outlook, and any other Office apps are completely closed. Check the system tray (bottom-right corner) for Outlook or OneDrive icons and right-click them to exit.
- Sign out of Office – Open any Office app (e.g., Word), go to File > Account (or Office Account), and click Sign Out under the user info. If you don’t see it, click Switch Account and then sign out.
- Clear cached credentials – Press Windows + R, type
control keymgr.dll, and press Enter. Look for entries likeMicrosoftOffice16_DataorOutlook. Select them and click Remove. (Note: This only removes stored passwords; you’ll need to re-enter them.) - Delete the Office token cache – Open File Explorer and go to
%localappdata%\Microsoft\Office\16.0(the version number may vary). Find and delete the Licenses folder and the Licenses16 folder if present. Also go to%localappdata%\Microsoft\Office\and delete the CloudFiles folder (this will sign you out of OneDrive too). - Restart your computer – This clears any remaining temporary files or processes.
- Sign back into Office – Open an Office app, go to File > Account, and click Sign In. Enter your work or school account credentials.
- If the error persists, repair Office – Go to Settings > Apps > Installed apps (Windows 11) or Control Panel > Programs and Features (Windows 10). Find Microsoft 365 or Office, click Modify (or Change), and choose Quick Repair. If that doesn’t work, repeat and choose Online Repair (this requires a stable internet connection and may take longer).
- Use the Microsoft Support and Recovery Assistant – Download and run the tool from Microsoft’s official website. Select “Office” and then “Office 365 for business” and follow the prompts. It can automatically fix sign-in issues.
Common Mistakes
- Not closing all Office apps – If Outlook is still running in the background, the token cache won’t fully clear.
- Deleting the wrong folder – Be careful to only delete the Licenses and CloudFiles folders, not the entire Office folder, or you’ll break your installation.
- Skipping the restart – A restart is essential to flush out cached data from memory.
- Using the wrong account – Make sure you sign in with the same account that has the Office license assigned.
Tips
- If you’re on a shared computer, make sure no other user is signed into Office with a different account.
- Keep your Office apps updated: go to File > Account > Update Options > Update Now.
- If you use a VPN or proxy, temporarily disable it during sign-in, as it can interfere with authentication.
- For persistent issues, check your organization’s admin portal to ensure your license is active and not expired.
Troubleshooting
If the steps above don’t work, try these in order:
- Check Microsoft service status – Visit the Microsoft 365 Service Health page (admin portal) or the Office 365 status page to see if there’s an ongoing outage.
- Reinstall Office – Uninstall Office completely (via Settings > Apps), then reinstall from the Microsoft 365 portal (if you have a business subscription) or from your Microsoft account page. This will not delete your files, but you’ll need to re-enter product keys if applicable.
- Create a new Windows user profile – If the error only happens on your user account, a new local admin profile can isolate the issue. (This is a last resort; back up your data first.)
- Contact your IT admin – If you’re in a company or school, your admin can reset your password or check if your account is blocked.
Warning: Reinstalling Office will remove all Office apps and their settings, but your documents and files remain intact. You’ll need to re-enter any customization.
Frequently Asked Questions
Why does this error happen?
It’s usually caused by a corrupted sign-in token or a mismatch between the cached credentials and the server. It can also happen after a password change or a failed update.
Will I lose my documents if I delete the Licenses folder?
No, deleting the Licenses folder only removes the license cache. Your documents, emails, and OneDrive files are unaffected.
Can I fix this on a Mac?
Yes, the steps are similar: sign out of Office, clear the keychain entries for Office, and sign back in. You can also use the Microsoft Support and Recovery Assistant for Mac.
Do I need to be an admin to fix this?
Not for the sign-out and cache-clearing steps, but you do need admin rights to repair or reinstall Office.
Will this affect my OneDrive files?
Deleting the CloudFiles folder will sign you out of OneDrive, but your files remain in the cloud. You’ll need to sign back into OneDrive after the fix.
How long does the repair take?
Quick Repair usually takes 5–10 minutes. Online Repair can take 30–60 minutes depending on your internet speed.