Windows Integration Errors

Fix AD FS Multiple-Domain Federation Error 0x and FileTime Messages in Microsoft 365

Bushra ParveenBushra Parveen Nov 13, 2026 868 views

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.

Fix AD FS Multiple-Domain Federation Error 0x and FileTime Messages in Microsoft 365
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.
Before you start

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.

Solution 1Recommended

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.

1
Download and open the Azure AD FS Claims Generator

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.

2
Enter all federated domains

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.

3
Run the generated PowerShell script

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.

4
Update each federated domain with SupportMultipleDomain

In the same PowerShell session, run Update-MSOLFederatedDomain -DomainName <domain> -SupportMultipleDomain for each federated Microsoft 365 domain, replacing <domain> with the actual domain name.

5
Restart AD FS and test sign-in

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.

Generate multiple-domain AD FS claims and update both federated domains
Expected result: After the claims rules and federated domain configuration are updated, AD FS should authenticate users from both domains without events 111, 1000, and 364.
Free Microsoft Office alternative

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.

Continue working on local Microsoft Office files even when Microsoft 365 AD FS federation errors block cloud sign-inFull compatibility with .docx, .xlsx, and .pptx Microsoft Office formatsFree download and familiar ribbon-based interface make migration from Microsoft Office simpleLightweight installer and fast startup for everyday documents, spreadsheets, and presentationsSeamless file exchange with Microsoft Office users without format conversion
microsoft office alternative - wps office

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.