Fix Microsoft 365 Desktop Apps Sign-In Errors (0xcaa70004)
Question details
The user is unable to sign into Microsoft 365 desktop apps (OneDrive, Teams, Outlook) on a specific Windows profile, encountering error codes like 0xcaa70004 and 0x8004de40, despite web apps working fine.

- Product
- Microsoft 365 Apps (Outlook, Teams, OneDrive)
- Device & OS
- Windows
- Scenario
- Attempting to log into Microsoft 365 desktop applications for work or school on a local Windows account.
- Observed behavior
- Desktop apps fail to authenticate and display connection errors, while the web browser versions and other local Windows accounts function normally.
Ensure you have your Microsoft 365 account credentials handy and verify that your internet connection is stable. Since the web version works, this confirms your account is active and the issue is localized to your specific Windows desktop environment.
Reconnect Work or School Account in Windows Settings
Disconnecting and reconnecting your account can resolve localized token or profile sync issues causing login errors.
Windows stores account credentials and authentication tokens locally. If these become corrupted for a specific user profile, desktop apps will fail to connect to Microsoft servers even if the account is perfectly fine on the web.
Press the Windows key + I to open the Settings app, then navigate to the 'Accounts' section.
Select 'Access work or school' from the left-hand navigation pane.
Locate your Microsoft 365 work or school account, click on it, and select 'Disconnect'.
Restart your computer. Return to the same 'Access work or school' menu, click 'Connect', and enter your credentials to add your account back.

Perform an Online Repair for Microsoft 365
Repairing the Office suite can fix corrupted installation files that prevent Outlook and OneDrive from connecting to cloud services.
Perform a Clean Boot and Contact IT Support
If local troubleshooting fails, third-party software might be blocking the connection, or tenant-level restrictions require IT intervention.
Switch to WPS Office for a Hassle-Free Desktop Experience
Tired of dealing with complex sign-in errors and connectivity issues in Microsoft 365? WPS Office provides a lightweight, highly compatible, and free alternative to MS Word, Excel, and PowerPoint, allowing you to work offline without mandatory cloud sign-ins.
- 1. Download WPS Office: Visit the official WPS website and click the free download button.
- 2. Install the Software: Run the installer and follow the simple on-screen instructions.
- 3. Open and Edit Directly: Launch WPS Office to instantly open and edit your Microsoft Office files offline.

Frequently Asked Questions
What does error code 0xcaa70004 mean in Microsoft Teams or Outlook?
Error 0xcaa70004 generally indicates a network connection issue or a problem with proxy and firewall settings preventing the desktop application from reaching Microsoft's authentication servers.
Why can I sign in on the web but not on the Microsoft 365 desktop app?
Web apps rely on your browser's session handling, while desktop apps use Windows-level authentication tokens and local network profiles. A corrupted local token, a specific user profile glitch, or strict firewall rules can block desktop apps while leaving web access intact.
How do I fix error code 0x8004de40 in OneDrive?
Error 0x8004de40 means OneDrive is having difficulties connecting to the cloud. Resetting your Windows network settings, ensuring automatic proxy detection is enabled, or resetting the OneDrive client can usually resolve this problem.




