Fix AD FS Multiple-Domain Federation Error 0x and FileTime Messages in Microsoft 365
Question details
The user needs to resolve Active Directory Federation Services errors when one AD FS server authenticates users from multiple Microsoft 365 domains, including events 111, 1000, and 364 with a "Not a valid Win32 FileTime" message caused by incorrect claims configuration.

- Product
- Microsoft 365 and Active Directory Federation Services (AD FS)
- Device & OS
- Windows Server
- Scenario
- A single AD FS server authenticates users from multiple Microsoft 365 domains, but incorrect claims configuration triggers AD FS errors.
- Observed behavior
- AD FS events 111, 1000, and 364 appear with a "Not a valid Win32 FileTime" message, interrupting federated sign-in.
Confirm you have administrative access to the AD FS server and Microsoft 365 tenant, and review AD FS Event Viewer logs for events 111, 1000, and 364. Record each federated domain and the current Microsoft 365 relying party trust claims rules before making changes.
Generate multiple-domain AD FS claims and update both federated domains
Use this when a single AD FS server authenticates users from multiple Microsoft 365 domains and the AD FS log shows events 111, 1000, or 364 with a FileTime message.
A "Not a valid Win32 FileTime" message typically appears because the relying party trust contains single-domain claim rules. The Azure AD FS Claims Generator creates the additional claims rules required when one AD FS server federates multiple Microsoft 365 domains.
Sign in to the Microsoft 365 admin center or Microsoft documentation site, download the Azure AD FS Claims Generator, and open it on the AD FS server or a management workstation.
In the Claims Generator, enter each Microsoft 365 domain that this AD FS server must support, then generate the script that adds the required multiple-domain claims rules.
Open Windows PowerShell as administrator on the AD FS server, run the script produced by the Claims Generator to update the Microsoft 365 relying party trust, and wait for it to complete.
In the same PowerShell session, run Update-MSOLFederatedDomain -DomainName <domain> -SupportMultipleDomain for each federated Microsoft 365 domain, replacing <domain> with the actual domain name.
Restart the AD FS service from the Services console or by running Restart-Service adfssrv, then test sign-in for users in both domains and check Event Viewer for the FileTime events.

Manually inspect and correct AD FS relying party trust claims rules
Use this fallback when you cannot run the Azure AD FS Claims Generator or need to verify that the existing rules match Microsoft's multiple-domain federation guidance.
A simpler Office path while you resolve Microsoft 365 AD FS federation errors
WPS Office does not manage AD FS or Microsoft 365 federation, but it gives you a free, lightweight way to open, edit, and save Microsoft Office files locally. It supports .docx, .xlsx, and .pptx with a familiar ribbon interface, so your daily document work can continue without being blocked by identity service configuration issues.

Frequently Asked Questions
Why does AD FS log "Not a valid Win32 FileTime" when federating multiple Microsoft 365 domains?
It usually means the relying party trust is still using single-domain claims rules, so AD FS generates an invalid timestamp claim. Update the claims rules for multiple-domain federation and restart AD FS to clear the error.
Can one AD FS server support more than one Microsoft 365 domain?
Yes. Use the Azure AD FS Claims Generator to add multiple-domain claims, run the resulting script, restart AD FS, and update each domain with Update-MSOLFederatedDomain -SupportMultipleDomain.
Which AD FS event IDs are associated with this issue?
The reported scenario commonly shows AD FS events 111, 1000, and 364. After the claims rules and federated domain settings are corrected, these events should no longer appear for normal sign-ins.
Do I need to run Update-MSOLFederatedDomain for every domain?
Yes. After updating the AD FS claims rules, run Update-MSOLFederatedDomain -DomainName <domain> -SupportMultipleDomain for each federated Microsoft 365 domain so both domains use the multiple-domain configuration.
Can WPS Office resolve AD FS federation errors?
WPS Office does not manage Microsoft 365 identity or AD FS. It can be a free Office alternative for opening and editing .docx, .xlsx, and .pptx files locally while you resolve the federation issue.




