Fix Microsoft 365 Office Sign-In Windows That Close Immediately
Question details
The user needs to add and authenticate a Microsoft 365 business account in Outlook and Office after the sign-in window closes immediately.

- Product
- Microsoft 365 Office and Outlook
- Device & OS
- Windows
- Scenario
- Adding a business account after a system restore and removal of Windows updates.
- Observed behavior
- The username and password window flashes briefly and closes, even after cached credentials and certificates were removed.
Close Outlook and all other Office apps before changing the Office identity cache. Make sure you know the affected business account's sign-in details and can complete any required verification.
Clear the Office identity cache in the Windows registry
Use this method to reset cached Office identities when the sign-in prompt closes before you can enter credentials.
Press Win+R, type regedit, and select OK. Approve the Windows prompt if asked.
In Registry Editor, navigate to HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity\Identities.
Right-click Identities and select Export to save a copy of the key. Then right-click Identities again, select Delete, and confirm.
Reopen an Office app, select Sign in, and enter the Microsoft 365 business account details. Then check whether Outlook can add the account.

Repair or reinstall Microsoft 365 Office
Use this method if clearing the identity cache does not stop the sign-in window from closing.
Test sign-in with a new Windows user profile
Use a separate Windows profile to check whether the problem is specific to the original user profile.
Work on Office documents with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing common Office files, making it easy to move document work between suites. It does not repair Microsoft 365 sign-in or activate Office.

Frequently Asked Questions
Why does the Office password window flash and close?
A damaged Office identity cache or a problem with the Office installation or Windows profile may be involved. Clearing the Identities registry key, repairing Office, and testing another Windows profile can help narrow down the cause.
Will deleting the Identities registry key remove my emails?
The key stores cached Office identity information, not mailbox messages. Office accounts for the current Windows user may need to sign in again after the key is deleted.
What if Online Repair does not fix the sign-in window?
Use Microsoft's Office uninstall troubleshooter or uninstall support instructions to remove Office completely, then reinstall it from the Microsoft 365 portal with your business account. Contact your administrator if your organization manages installation.
Can an IMAP account fix Office activation?
Adding a mailbox through Outlook's IMAP account setup may provide email access, but it does not authenticate or activate the Microsoft 365 Office apps.




