Environment:
- Windows Server 2025
- 2x RDS Session Hosts
- WTS1 is also Connection Broker
- WTS2 has Microsoft Entra Connect Synchronization Services (Azure AD Connect) running (not optimal i know)
- FSLogix Profile Containers
- OneDrive for Business
- Microsoft 365 Apps
- Apps and Windows Versions are identical
- System is running for over a year now
Problem:
Users received OneDrive error 0x8004DEF4 only on WTS2, about a week ago for the first time
The same users work fine on WTS1.
What has already been done:
- Office Online Repair
- OneDrive completely removed and reinstalled
- Same OneDrive version on both hosts
- Same Office version on both hosts
- No relevant errors in Application/System logs
- AAD 1098 TokenBroker errors exist on BOTH hosts
- FSLogix profiles are shared between both hosts
- GPOs are identical
- Disconnecting user from all active sessions in MS365 administration
- bot devices are AzureADjoined
- deleted onedrive folder under appdata for a user on both devices
Interesting observation:
Deleting %localappdata%\Microsoft\OneDrive\settings immediately fixes the issue on WTS2
If users stay on, or get reconnected to WTS2, OneDrive continues to work fine
The issue becomes reproducible when:
- User signs in to WTS2
- OneDrive works
- User signs in to WTS1 (onedrive always works here, no error ever)
- User returns to WTS2
- OneDrive throws 0x8004DEF4 again
I can reproduce this repeatedly.
No triggering event could be identified.
There were no corresponding changes around the time the problem began:
- No recent Windows updates (latest September Updates installed on Sept. 12th)
- No recent Office updates
- No recent OneDrive deployment
- No recent Entra Connect installation or update
- No recent GPO changes
Application and System event logs were reviewed and do not contain any errors that correlate with the onset of the issue.
The only recurring errors found were AAD Event ID 1098 entries, however these occur on both WTS1 and WTS2 and therefore do not appear to be related to the issue.
Sorry for the long post, but me and copilot are at the end of the road. I don't know what to do anymore. Please help.