Sign-in & Login Problems

How to Fix Office 365 Sign-In Error Looping After Reinstall

Jason MillerJason Miller Oct 26, 2026 868 views

Question details

The user is unable to access Office applications due to a continuous sign-in loop and account error that persists even after signing out and reinstalling the software.

How to Fix Office 365 Sign-In Error Looping After Reinstall
Product
Microsoft Office 365
Device & OS
Windows
Scenario
Attempting to authenticate an Office 365 account to clear an exclamation mark warning in Office applications.
Observed behavior
Clicking 'Sign in again' triggers an endless loop. Reinstalling the application and performing new sign-in attempts do not resolve the account warning.
Before you start

Ensure you are logged into Windows with an administrator account and create a backup of your Registry before modifying or deleting any system identity keys.

Solution 1Recommended

Remove Stale Office Credentials and Product Keys

Clearing corrupted local credentials and resetting the product key from your system usually resolves continuous sign-in loops.

When you uninstall Office, Windows may leave behind stale account identities in the Registry and Credential Manager. These remnants can force a newly installed Office application into an endless authentication loop.

1
Delete Office Registry Identity

Press Win + R, type 'regedit', and hit Enter. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity\Identities and delete the Office account identity folder.

2
Clear Windows Credentials

Open the Start menu, search for 'Credential Manager', and select it. Go to 'Windows Credentials', locate your Office 365 account, and click 'Remove'.

3
Open Command Prompt as Administrator

Search for 'cmd' in the Start menu, right-click 'Command Prompt', and select 'Run as administrator'.

4
Navigate to the Office Directory

Type 'cd C:\Program Files\Microsoft Office\Office16' (or C:\Program Files (x86)\Microsoft Office\Office16 if using 32-bit) and press Enter.

5
Find Your Product Key

Run the command 'cscript OSPP.VBS /dstatus' and note the last five characters of your installed product key displayed in the results.

6
Uninstall the Product Key

Run 'cscript OSPP.VBS /unpkey:XXXXX', replacing XXXXX with the five characters you found. You should see a success message. Restart your computer and try signing into Office again.

Remove Stale Office Credentials and Product Keys
Test on Another Device First: Before modifying system files, try logging into your Office account on another device. If it works, the issue is local to your PC. If it fails, your Microsoft account may be locked.
Free Microsoft Office alternative

Switch to WPS Office for a Hassle-Free Experience

If you are tired of dealing with Office 365 activation loops and persistent sign-in errors, WPS Office provides a lightweight, highly compatible, and free alternative. Enjoy powerful document editing without the complicated account authentication hurdles.

  1. 1. Download the Installer: Visit the official WPS Office website and download the free installation package to your computer.
  2. 2. Install WPS Office: Run the downloaded setup file and follow the quick on-screen instructions to complete the installation.
  3. 3. Open Your Office Files: Launch WPS Office and directly open your existing .docx, .xlsx, or .pptx documents without any sign-in barriers.
Fully compatible with Microsoft Word, Excel, and PowerPoint formatsCompletely free to use with no forced subscription loopsLightweight installation that runs smoothly on most Windows devicesFamiliar tabbed user interface for an immediate, zero-learning-curve transition
microsoft office alternative - wps office

Frequently Asked Questions

Why does Office 365 keep asking me to sign in after a fresh install?

When you uninstall Office, Windows often retains your old account credentials in the Windows Credential Manager and the system Registry. These stale or corrupted files cause the sign-in loop to persist across new installations.

How do I safely back up my Windows Registry before deleting Office identities?

Press Win + R, type 'regedit', and press Enter to open the Registry Editor. Click on 'File' > 'Export', choose 'All' under Export range, name your backup file, and save it to a safe location like your Desktop.

Will deleting the Office registry key erase my Word or Excel documents?

No. Deleting the Office identity keys in the Registry only clears the cached account login data used by the software. Your personal documents, spreadsheets, and presentations are saved separately and will remain unaffected.