Fix Microsoft 365 Office Sign-In Closing After Profile Migration
Question details
The user needs to sign in to desktop Office with a Microsoft 365 business account after a Windows profile migration.

- Product
- Microsoft 365 Apps for business
- Device & OS
- Windows
- Scenario
- The user is activating or signing in to desktop Office after migrating a Windows profile.
- Observed behavior
- The Office sign-in window closes at the “Just a moment” screen, although the same credentials work in Outlook Online and Office Online.
Confirm that the business account can sign in at office.com and that it has a license for desktop Microsoft 365 Apps. In an Office app, check File > Account for the installed product and version, if the app opens.
Sign Out and Repair the Office Installation
Use this first to refresh the Office sign-in session and repair the desktop installation.
Open an Office app, select File > Account, and choose Sign out if an account is listed. Close all Office applications.
In Windows Settings, open Apps, find Microsoft 365 or Microsoft Office in the installed apps list, and select Modify. The exact menu name may vary by Windows version.
Select Quick Repair and follow the prompts. If sign-in still closes, return to Modify and try Online Repair.
Restart Windows, open an Office app, and select File > Account > Sign in. Enter the Microsoft 365 business account credentials.

Check the Work Account and Run Microsoft Troubleshooting
Use Microsoft’s troubleshooting tools and involve your administrator if the migrated Windows profile still cannot sign in.
Remove a Confirmed Volume-License Key
Use this only if an administrator confirms that an installed volume-license key needs to be removed.
Keep Working on Office Files with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and support for common Microsoft Office formats, making it easier to continue working with existing files. It does not fix Microsoft 365 sign-in or replace a Microsoft 365 subscription.

Frequently Asked Questions
Why can I sign in online but not in desktop Office?
A successful browser sign-in confirms the credentials work, but desktop Office may have a separate installation, account, or activation issue. Check File > Account, repair Office through Windows Settings > Apps, and verify the desktop app license with your administrator.
How do I check which Office version is installed?
Open an Office app and select File > Account. Look under Product Information for the product name and version; select About Word or the equivalent About option for more details.
Does ospp.vbs reset Microsoft 365 subscription activation?
No. The script manages volume-license keys, not Microsoft 365 subscription activation. Use it to remove a key only when an administrator has confirmed that the volume-license key should be removed.
Should I disconnect my work account from Windows?
Check the account under Settings > Accounts > Access work or school, but consult your IT administrator before disconnecting it. The account may manage access and device settings.




