Fix Office Activation Login Window Closes Before Sign-In
Question details
The user is unable to complete the Microsoft 365 activation process because the authentication window disappears unexpectedly.

- Product
- Microsoft Office 365
- Device & OS
- Windows
- Scenario
- Attempting to sign in to activate a newly installed or renewed Microsoft Office desktop application.
- Observed behavior
- The activation sign-in window opens briefly but closes automatically before the user has a chance to enter their password.
Ensure you have administrator privileges on your Windows computer, as the recommended troubleshooting steps require running system-level commands in PowerShell.
Restore the Windows CloudExperienceHost Package
This is the primary Microsoft-recommended fix for modern authentication window crashes during Office activation.
The CloudExperienceHost is a Windows component responsible for displaying modern sign-in interfaces. If this package becomes corrupted or unregistered, the Office login prompt will fail to load properly and crash immediately.
Click the Windows Start button, type 'PowerShell', right-click on 'Windows PowerShell' in the search results, and select 'Run as administrator'.
Type or paste the Microsoft-recommended Add-AppxPackage command to re-register the CloudExperienceHost package, then press Enter to execute it.
Once the PowerShell command completes successfully, restart your PC to apply the system changes.
Launch any Microsoft Office application, such as Word or Excel, and try signing in to activate your product again.

Reset the Office Activation State
Clearing cached credentials and resetting the local Office activation state can resolve lingering login glitches.
Avoid Activation Hassles with WPS Office
Tired of complicated Microsoft 365 activation issues and login crashes? Switch to WPS Office, a free, lightweight, and highly compatible alternative that lets you start working immediately without complex authentication hurdles.
- 1. Download WPS Office: Visit the official WPS website and download the free installation package for Windows.
- 2. Install the Software: Run the installer and follow the quick, one-click installation process.
- 3. Open and Edit Immediately: Launch WPS Office and instantly open your existing Microsoft Office files without any mandatory activation prompts.

Frequently Asked Questions
Why does the Office sign-in window keep closing immediately?
This usually happens due to a corrupted CloudExperienceHost package in Windows, which handles the modern authentication interface. It can also be caused by conflicting cached credentials in your Windows Credential Manager.
Will reinstalling Microsoft Office fix the disappearing login window?
Reinstalling Office often does not resolve this specific issue because the root cause typically lies within the Windows OS components, like the account authentication host, rather than the Office application files themselves.
How do I fix a corrupted CloudExperienceHost?
You can fix it by running an elevated PowerShell command provided by Microsoft (using Add-AppxPackage) to re-register the AppxManifest for the CloudExperienceHost component.




