Sign-in & Login Problems

Fix Microsoft 365 Office Sign-In Windows That Close Immediately

Chanuka GeekiyanageChanuka Geekiyanage Nov 18, 2026 868 views

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.

Fix Microsoft 365 Office Sign-In Windows That Close 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.
Before you start

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.

Solution 1Recommended

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.

1
Open Registry Editor

Press Win+R, type regedit, and select OK. Approve the Windows prompt if asked.

2
Find the identity cache

In Registry Editor, navigate to HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity\Identities.

3
Export and delete the key

Right-click Identities and select Export to save a copy of the key. Then right-click Identities again, select Delete, and confirm.

4
Sign in again

Reopen an Office app, select Sign in, and enter the Microsoft 365 business account details. Then check whether Outlook can add the account.

Clear the Office identity cache in the Windows registry
Other Office accounts may need to sign in again: Deleting the Identities key clears cached Office identities for the current Windows user. Change only the specified key.
Free Microsoft Office alternative

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.

Open and edit documents while troubleshooting Office sign-inCompatible with common Microsoft Office formats, including DOCX, XLSX, and PPTXFamiliar document, spreadsheet, and presentation toolsFree and lightweight for everyday office work
microsoft office alternative - wps 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.