unable to login to Entra ID joined machines

M365 0 Reputation points
2026-06-23T07:33:48.8433333+00:00

We have a domain federated with ADFS. we are able to join machine to Entra ID; however, unable to login to azure ad joined machines. its says username or password incorrect.

we can see from dsregcmd/status that the endpoint URI is not the ADFS URL. its the Microsoft endpoint.

Microsoft Security | Microsoft Entra | Microsoft Entra ID

1 answer

Sort by: Most helpful
  1. AI answer

    2026-06-23T07:34:17.2266667+00:00

    For federated tenants, Microsoft Entra sign-in for Azure AD–joined devices still uses Microsoft’s endpoints as the primary authority; WS-Trust/AD FS is used behind the scenes for federated authentication. Seeing a Microsoft endpoint URI in dsregcmd /status is expected and not, by itself, the cause of the “username or password is incorrect” error.

    Use the following checks and tools from the referenced guidance to narrow down the issue:

    1. Verify the device is actually Azure AD joined and healthy
      On the problem device, run:
         dsregcmd /status
      
      Confirm:
      • AzureAdJoined : YES
      • DomainJoined / WorkplaceJoined values match the intended state (for pure Azure AD joined, DomainJoined should be NO).
        If AzureAdJoined : NO, the join is incomplete; follow the “Troubleshoot join failures” flow to find the error phase and code.
    2. If join is failing or incomplete, locate the error phase and code
      From the hybrid join troubleshooting flow (also applicable for Azure AD join diagnostics):
      • On Windows 10/11 1803 or later, in dsregcmd /status look under Diagnostic Data → Previous Registration for:
        • Error Phase
        • Client ErrorCode
      • On earlier builds, check Event Viewer:
        • Applications and Services Logs → Microsoft → Windows → User Device Registration → Admin
        • Look for events 304, 305, 307.
    3. Check for network / WS-Trust / AD FS–related errors
      For federated auth, failures often surface as STATUS or HTTP errors:
      • In Microsoft Entra operational logs and analytics logs on the client, look for:
        • STATUS_NETWORK_UNREACHABLE, STATUS_BAD_NETWORK_PATH, or STATUS_UNEXPECTED_NETWORK_ERROR
          These indicate HTTP > 400 from Microsoft Entra auth service or WS-Trust endpoint, or network connectivity issues to required endpoints.
        • Event 1081 and 1088 (operational) for server error codes and WS-Trust error descriptions.
        • Event 1022 (analytics) for the URL being accessed.
        • Event 1084 (operational) for suberror codes from the network stack.
      • If the user realm discovery fails with STATUS_NO_SUCH_LOGON_SESSION, verify:
        • The user’s UPN domain is added as a custom domain in Microsoft Entra ID.
        • If on-prem domain is nonroutable (for example, user@contoso.local), configure Alternate Login ID (AltID) as per the referenced prerequisites.
    4. Confirm correct username format at the Windows sign-in screen
      For cloud sign-in to Azure AD–joined devices, the username must be the full UPN, not domain\user or short name. For example:
      • ******@contoso.com
        Using user or contoso\user will fail in the same way as described for PowerShell sign-in: the format must be <user_name>@<domain>.
    5. Validate that the user can authenticate to Microsoft Entra ID directly
      Since the tenant is federated, confirm that the same user can:
      • Sign in to a cloud app (for example, Microsoft 365) using the same UPN and password.
      • If cloud sign-in works but device sign-in fails, focus on device registration/join and WS-Trust/AD FS logs as above.
    6. If using hybrid join, ensure the device is also domain joined
      For hybrid-joined scenarios, DomainJoined must be YES in dsregcmd /status. If it is NO, hybrid join cannot complete, and Azure AD sign-in will not function as expected.
    7. Review AD FS and WS-Trust configuration
      Because the tenant is federated:
      • Ensure the WS-Trust endpoints used for device authentication are reachable from the device.
      • Use the error codes from events 1081/1088 and the STATUS codes in the table to map to specific server/network issues and remediate accordingly (for example, fixing AD FS endpoint availability, certificates, or proxy/firewall rules).

    Once the device shows AzureAdJoined : YES, the UPN domain is correctly configured in Entra ID, and WS-Trust/AD FS endpoints are reachable (no STATUS/HTTP > 400 errors in the logs), Azure AD sign-in to the joined machine should succeed using the user’s full UPN and password.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.