Sign-in & Login Problems

Fix Microsoft 365 Office Sign-In Closing After Profile Migration

Algirdas JasaitisAlgirdas Jasaitis Nov 20, 2026 868 views

Question details

The user needs to sign in to desktop Office with a Microsoft 365 business account after a Windows profile migration.

Fix Microsoft 365 Office Sign-In Closing After 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.
Before you start

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.

Solution 1Recommended

Sign Out and Repair the Office Installation

Use this first to refresh the Office sign-in session and repair the desktop installation.

1
Sign out of Office

Open an Office app, select File > Account, and choose Sign out if an account is listed. Close all Office applications.

2
Open the repair options

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.

3
Run a repair

Select Quick Repair and follow the prompts. If sign-in still closes, return to Modify and try Online Repair.

4
Try signing in again

Restart Windows, open an Office app, and select File > Account > Sign in. Enter the Microsoft 365 business account credentials.

Sign Out and Repair the Office Installation
Free Microsoft Office alternative

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.

Open and edit documents while resolving an Office sign-in issueCompatible with common Microsoft Office formats, including DOCX, XLSX, and PPTXFamiliar interface for moving from Microsoft OfficeFree and lightweight office suite
microsoft office alternative - wps office

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.