Fix OneDrive and Office Sign-In After an Email Domain Change
Question details
The user needs to sign in to OneDrive and Office with a new business email address after an email domain change.

- Product
- Microsoft OneDrive and Microsoft 365 Office
- Device & OS
- Windows; version not provided
- Scenario
- A business changed its email domain, but computers previously connected to OneDrive and Office still reference the old address.
- Observed behavior
- OneDrive shows error 0x8004de40, and Office apps may continue to show the old domain even after Office is reinstalled.
Confirm the new Microsoft 365 sign-in address with your administrator and check whether you can sign in at microsoft365.com. Note whether the issue affects multiple users or only one Windows profile.
Check for software blocking OneDrive authentication
Use this approach when OneDrive shows error 0x8004de40 or cannot prompt for credentials.
Open a browser and sign in at microsoft365.com with the new address. If the sign-in fails there too, report the result to your Microsoft 365 administrator.
Ask your IT administrator to check firewall, proxy, antivirus, and related services for blocked Microsoft 365 or OneDrive authentication traffic. With authorization, temporarily stop the suspected service for testing.
Select the OneDrive cloud icon in the Windows notification area, open the Help & Settings menu, and quit OneDrive. Reopen OneDrive from the Start menu and sign in with the new address.
Restart the service that was stopped, then check the OneDrive cloud icon and confirm that files are uploading and downloading. If sign-in fails again, ask IT to correct the service configuration.

Remove obsolete Office credentials and verify the account
Use this solution if Office continues to show the old domain or reuses an outdated sign-in.
Test OneDrive in another Windows profile
Use this test to identify whether the sign-in problem is specific to one Windows profile.
Edit Office Files with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and support for common Microsoft Office formats. Open existing files to make the transition easier while your administrator resolves Microsoft 365 sign-in issues.

Frequently Asked Questions
What does OneDrive error 0x8004de40 mean?
It can indicate a connection or authentication problem. Check browser access to microsoft365.com, then ask IT to investigate firewall, proxy, antivirus, and related services that may block OneDrive.
Why does Word still show my old email domain after reinstalling Office?
Reinstalling Office may not remove saved credentials or change the account's sign-in name. Check File > Account in Word, review relevant entries in Windows Credential Manager, and ask your administrator to verify the Microsoft 365 sign-in name.
Does changing my email address automatically change my Microsoft 365 sign-in name?
Not necessarily. Ask your administrator to check the user's sign-in name in the Microsoft 365 admin center before signing in to OneDrive or Office.
How can I tell whether the problem is limited to my Windows profile?
Sign in to another Windows profile and open OneDrive from the Start menu. If the same account works there, the original profile may need further investigation.
Can WPS Office fix my OneDrive sign-in?
No. OneDrive authentication is managed by Microsoft and your organization. WPS Office can open and edit compatible Office files, but your administrator must resolve the OneDrive sign-in issue.




