A Microsoft file hosting and synchronization service.
Hello Mariam,
Thank you for contacting the Microsoft Community.
I understand that you have been unable to sign in to your university Microsoft account in Outlook, PowerPoint, OneDrive, and other Microsoft 365 desktop applications for approximately four months. Since your account works in a web browser, but the desktop applications display "An unexpected error occurred," let's try the following steps to refresh your saved credentials and authentication data.
1/Remove Microsoft 365 credentials from Windows Credential Manager
- Close all Microsoft 365 applications, including OneDrive.
- Open Control Panel and select Credential Manager.
- Select Windows Credentials.
- Look for entries related to Microsoft 365, Office, Outlook, OneDrive, or your university account.
- Remove the relevant entries.
2/Clear the Microsoft 365 authentication cache
- Close all Microsoft 365 applications and OneDrive.
- Press Windows + R, enter
%localappdata%\Microsoft, and press Enter. - Locate the
OneAuthandIdentityCachefolders. - Rename them to
OneAuth.oldandIdentityCache.old, respectively, if the folders exist.
3/Disconnect and reconnect your work or school account
- Open Settings > Accounts > Access work or school.
- Select your university account and click Disconnect, if available.
4/Reset the Office registry configuration
A corrupted user-level Office registry configuration may contribute to sign-in problems. Incorrect registry changes can cause issues, so back up the relevant key before proceeding.
- Close all Office applications.
- Search for Registry Editor in the Start menu and open it.
- Navigate to:
Computer\HKEY_CURRENT_USER\Software\Microsoft\Office - Right-click the Office folder and select Export to back it up.
- Right-click the folder again and select Rename.
- Rename it to
Office.Old. - Close Registry Editor, open Word, and try signing in again.
- Restart your computer and try signing in again.
Note: This resets user-level Office registry settings and may affect customizations or application preferences. If necessary, restore the original configuration from your exported backup.
If the issue persists, follow Microsoft's official troubleshooting guide to reset the Microsoft 365 Apps activation state. The guide explains how to use the available troubleshooting tools to refresh the activation state. Reference: Reset activation state for Microsoft 365 Apps for enterprise
After completing these steps, please let us know whether you can sign in successfully or whether the same error persists.
Kind regards