dsregcmd /status reader
Paste the output of dsregcmd /status from a Windows device. The page says how the device is joined, explains each field, and points at the values that Microsoft's documentation ties to a problem, such as AzureAdPrt : NO or a failed KeySignTest. The text stays in your browser.
+----------------------------------------------------------------------+
| Device State |
+----------------------------------------------------------------------+
AzureAdJoined : YES
EnterpriseJoined : NO
DomainJoined : YES
DomainName : HYBRIDADFS
+----------------------------------------------------------------------+
+----------------------------------------------------------------------+
| Device Details |
+----------------------------------------------------------------------+
DeviceId : 00aa00aa-bb11-cc22-dd33-44ee44ee44ee
Thumbprint : AA11BB22CC33DD44EE55FF66AA77BB88CC99DD00
DeviceCertificateValidity : [ 2019-01-11 21:02:50.000 UTC -- 2029-01-11 21:32:50.000 UTC ]
KeyContainerId : 00aa00aa-bb11-cc22-dd33-44ee44ee44ee
KeyProvider : Microsoft Software Key Storage Provider
TpmProtected : NO
DeviceAuthStatus : SUCCESS
+----------------------------------------------------------------------+
+----------------------------------------------------------------------+
| Tenant Details |
+----------------------------------------------------------------------+
TenantName : HybridADFS
TenantId : aaaabbbb-0000-cccc-1111-dddd2222eeee
Idp : login.windows.net
AuthCodeUrl : https://login.microsoftonline.com/aaaabbbb-0000-cccc-1111-dddd2222eeee/oauth2/authorize
AccessTokenUrl : https://login.microsoftonline.com/aaaabbbb-0000-cccc-1111-dddd2222eeee/oauth2/token
MdmUrl : https://enrollment.manage-beta.microsoft.com/EnrollmentServer/Discovery.svc
MdmTouUrl : https://portal.manage-beta.microsoft.com/TermsOfUse.aspx
MdmComplianceUrl : https://portal.manage-beta.microsoft.com/?portalAction=Compliance
SettingsUrl : eyJVx{lots of characters}xxxx==
JoinSrvVersion : 1.0
JoinSrvUrl : https://enterpriseregistration.windows.net/EnrollmentServer/device/
JoinSrvId : urn:ms-drs:enterpriseregistration.windows.net
KeySrvVersion : 1.0
KeySrvUrl : https://enterpriseregistration.windows.net/EnrollmentServer/key/
KeySrvId : urn:ms-drs:enterpriseregistration.windows.net
WebAuthNSrvVersion : 1.0
WebAuthNSrvUrl : https://enterpriseregistration.windows.net/webauthn/aaaabbbb-0000-cccc-1111-dddd2222eeee/
WebAuthNSrvId : urn:ms-drs:enterpriseregistration.windows.net
DeviceManagementSrvVer : 1.0
DeviceManagementSrvUrl : https://enterpriseregistration.windows.net/manage/aaaabbbb-0000-cccc-1111-dddd2222eeee/
DeviceManagementSrvId : urn:ms-drs:enterpriseregistration.windows.net
+----------------------------------------------------------------------+
+----------------------------------------------------------------------+
| User State |
+----------------------------------------------------------------------+
NgcSet : YES
NgcKeyId : {aaaaaaaa-0b0b-1c1c-2d2d-333333333333}
CanReset : DestructiveAndNonDestructive
WorkplaceJoined : NO
WamDefaultSet : YES
WamDefaultAuthority : organizations
WamDefaultId : https://login.microsoft.com
WamDefaultGUID : { B16898C6-A148-4967-9171-64D755DA8520 } (AzureAd)
+----------------------------------------------------------------------+
+----------------------------------------------------------------------+
| SSO State |
+----------------------------------------------------------------------+
AzureAdPrt : NO
AzureAdPrtAuthority : https://login.microsoftonline.com/aaaabbbb-0000-cccc-1111-dddd2222eeee
AcquirePrtDiagnostics : PRESENT
Previous Prt Attempt : 2020-07-18 20:10:33.789 UTC
Attempt Status : 0xc000006d
User Identity : john@contoso.com
Credential Type : Password
Correlation ID : aaaa0000-bb11-2222-33cc-444444dddddd
Endpoint URI : https://login.microsoftonline.com/aaaabbbb-0000-cccc-1111-dddd2222eeee/oauth2/token/
HTTP Method : POST
HTTP Error : 0x0
HTTP status : 400
Server Error Code : invalid_grant
Server Error Description : AADSTS50126: Error validating credentials due to invalid username or password.
EnterprisePrt : YES
EnterprisePrtUpdateTime : 2019-01-24 19:15:33.000 UTC
EnterprisePrtExpiryTime : 2019-02-07 19:15:33.000 UTC
EnterprisePrtAuthority : https://fs.hybridadfs.nttest.microsoft.com:443/adfs
OnPremTgt : YES
CloudTgt : YES
KerbTopLevelNames : .windows.net,.windows.net:1433,.windows.net:3342,.azure.net,.azure.net:1433,.azure.net:3342
+----------------------------------------------------------------------+
+----------------------------------------------------------------------+
| Diagnostic Data |
+----------------------------------------------------------------------+
AadRecoveryEnabled: NO
KeySignTest : PASSED
+----------------------------------------------------------------------+
+----------------------------------------------------------------------+
| Ngc Prerequisite Check |
+----------------------------------------------------------------------+
IsDeviceJoined : YES
IsUserAzureAD : YES
PolicyEnabled : YES
PostLogonEnabled : YES
DeviceEligible : YES
SessionIsNotRemote : YES
CertEnrollment : enrollment authority
AdfsRefreshToken : YES
AdfsRaIsReady : YES
LogonCertTemplateReady : YES ( StateReady )
PreReqResult : WillProvision
+----------------------------------------------------------------------+
Every field
| Field | Value | What it means |
|---|
How to run it
Run dsregcmd /status twice. In a normal command prompt, as the user, it shows the User State and SSO State sections, which need the user's context. From an elevated command prompt it runs its diagnostics in the SYSTEM context, the context a real join runs in, and it can run KeySignTest, which needs elevated rights.
How the join state is read
Three fields of the Device State section give the join state. A device that is only Microsoft Entra registered shows WorkplaceJoined : YES in the User State section instead.
| AzureAdJoined | EnterpriseJoined | DomainJoined | Join state |
|---|---|---|---|
| YES | NO | NO | Microsoft Entra joined |
| NO | NO | YES | Domain joined |
| YES | NO | YES | Microsoft Entra hybrid joined |
| NO | YES | YES | On-premises DRS joined |
Some sections appear only for some devices. Device Details and Tenant Details: only for a device that is Microsoft Entra joined or hybrid joined. The pre-join diagnostics: only for a domain joined device that could not hybrid join. A join that fails in the join phase with DirectoryError is expected for a sync join, until Microsoft Entra Connect has synchronized the device; then it can join.
The fields
The page reads the pasted fields against this table. Field names that are not in it are shown as not described.
| Field | What it means | Points at a problem |
|---|---|---|
| Device State | ||
AzureAdJoined | YES when the device is joined to Microsoft Entra ID. | |
EnterpriseJoined | YES when the device is joined to an on-premises Active Directory (AD); with DomainJoined YES, the join state table calls this on-premises DRS joined. A device cannot be both EnterpriseJoined and AzureAdJoined. | |
DomainJoined | YES when the device is joined to an Active Directory domain. | |
DomainName | The name of the domain, when the device is joined to one. | |
| Device Details | ||
DeviceId | The device's ID in the Microsoft Entra tenant. | |
Thumbprint | The thumbprint of the device certificate. | |
DeviceCertificateValidity | When the device certificate is valid: from the first time to the second. The page compares them with this computer's clock. | |
KeyContainerId | The container ID of the device's private key, the key of the device certificate. | |
KeyProvider | Where the device's private key is kept: in hardware or in software. | |
TpmProtected | YES when the device's private key is kept in a hardware TPM. | |
DeviceAuthStatus | A check of the device's health in Microsoft Entra ID: SUCCESS when the device is there and enabled. Added in Windows 10 version 21H1. | FAILED. Device is either disabled or deleted: The device is disabled or deleted in Microsoft Entra ID. FAILED. ERROR: The check could not run; it needs a network connection to Microsoft Entra ID in the system context. |
Virtual Desktop | Whether there is VDI device metadata: NOT SET, YES (the provider, type, user mode and extensions follow) or INVALID. | INVALID: The VDI device metadata is there but not set correctly. |
Provider | VDI: the name of the VDI vendor. | |
Type | VDI: persistent or non-persistent. | |
User mode | VDI: single user or multi-user. | |
Extensions | VDI: how many key-value pairs of optional vendor metadata there are, then the pairs. | |
| Tenant Details | ||
MdmUrl | The address for enrollment in mobile device management (MDM). Empty when no MDM is set up or the user is not in scope of MDM enrollment. A URL here does not mean the device is managed. | |
MdmTouUrl | An MDM address (terms of use). Empty when no MDM is set up or the user is not in scope. | |
MdmComplianceUrl | An MDM address (compliance). Empty when no MDM is set up or the user is not in scope. | |
Other fields | One of the tenant details shown for a device joined to Microsoft Entra ID. The article describes the section, not each field. | |
| User State | ||
NgcSet | YES when the signed-in user has a Windows Hello key. | |
NgcKeyId | The ID of the user's Windows Hello key, when there is one. | |
CanReset | Whether the user can reset the Windows Hello key: DestructiveOnly, NonDestructiveOnly, DestructiveAndNonDestructive, or Unknown on an error. | |
WorkplaceJoined | YES when Microsoft Entra registered accounts have been added to the device in the current user's profile: this is the Microsoft Entra registered state. | |
WamDefaultSet | YES when a Web Account Manager (WAM) default WebAccount exists for the signed-in user. | ERROR: It can show an error when dsregcmd /status runs from an elevated command prompt: run it again from one that is not elevated. |
WamDefaultAuthority | organizations for Microsoft Entra ID. | |
WamDefaultId | https://login.microsoft.com for Microsoft Entra ID. | |
WamDefaultGUID | The GUID of the WAM provider (Microsoft Entra ID or Microsoft account) for the default WebAccount. | |
| SSO State | ||
AzureAdPrt | YES when the signed-in user has a Primary Refresh Token (PRT) on the device. | NO: There is no PRT for this user on this device, and without one there is no single sign-on to Microsoft 365 and other cloud apps. On a Microsoft Entra joined or hybrid joined device, Windows gets a PRT when the user signs in with organization credentials. When AcquirePrtDiagnostics or RefreshPrtDiagnostics is PRESENT, the fields after it describe the last failed attempt. |
AzureAdPrtUpdateTime | When the PRT was last updated, in UTC. | |
AzureAdPrtExpiryTime | When the PRT expires if it is not renewed, in UTC. | |
AzureAdPrtAuthority | The Microsoft Entra authority URL. | |
EnterprisePrt | YES when the device has a PRT from on-premises AD FS. A hybrid joined device can have one from both; an on-premises joined device has only this one. | |
EnterprisePrtUpdateTime | When the enterprise PRT was last updated, in UTC. | |
EnterprisePrtExpiryTime | When the enterprise PRT expires if it is not renewed, in UTC. | |
EnterprisePrtAuthority | The AD FS authority URL. | |
AcquirePrtDiagnostics | PRESENT when there is diagnostic information about getting a PRT; the fields after it describe the last failed attempt. Shown only for a failure after the last successful update; on a shared device it can come from another user's sign-in. | PRESENT: A PRT could not be got: read Attempt Status, Server Error Code and Server Error Description below it. |
Previous Prt Attempt | When the failed PRT attempt happened. | |
Attempt Status | The client error code that came back (an HRESULT). | |
User Identity | The UPN of the user the attempt was for. | |
Credential Type | What was used to get or refresh the PRT, such as Password or Next Generation Credential (NGC, Windows Hello). | |
Correlation ID | The correlation ID the server sent for the failed attempt. | |
Endpoint URI | The last endpoint reached before the failure. | |
HTTP Method | The HTTP method used with that endpoint. | |
HTTP Error | A WinHttp transport error code. | |
HTTP Status | The HTTP status the endpoint returned. | |
Server Error Code | The error code from the server. | |
Server Error Description | The error message from the server. | |
RefreshPrtDiagnostics | PRESENT when there is diagnostic information about refreshing the PRT; the same fields follow it. | PRESENT: Refreshing the PRT failed: read Attempt Status, Server Error Code and Server Error Description below it. |
OnPremTgt | YES when the user has a Cloud Kerberos ticket for on-premises resources. Windows 11 version 21H2 and later. | |
CloudTgt | YES when the user has a Cloud Kerberos ticket for cloud resources. | |
KerbTopLevelNames | The top-level Kerberos realm names for Cloud Kerberos. | |
| Diagnostic Data | ||
User Context | The context the diagnostics ran in: SYSTEM, UN-ELEVATED User or ELEVATED User. SYSTEM is the closest to a real join, which runs as SYSTEM. | |
Client Time | The system time, in UTC. | |
AD Connectivity Test | Tests the connection to a domain controller. | FAIL: A failure here likely leads to join errors in the pre-check phase. |
AD Configuration Test | Checks that the Service Connection Point (SCP) object is set up in the on-premises forest. | FAIL: A failure here likely leads to join errors in the discover phase, with error 0x801c001d. |
DRS Discovery Test | Gets the DRS endpoints from the discovery metadata and makes a user realm request. | FAIL: A failure here likely leads to join errors in the discover phase. |
DRS Connectivity Test | A basic test of the connection to the DRS endpoint. | FAIL: The device cannot reach the DRS endpoint. |
Token Acquisition Test | Tries to get a Microsoft Entra authentication token, when the user's tenant is federated. | FAIL: A failure here likely leads to join errors in the auth phase. Windows then falls back to sync join, unless that is turned off. |
Fallback to Sync-Join | ENABLED unless the registry value FallbackToSyncJoin under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\CDJ turns it off (0). Windows 10 version 1803 and later. | |
Previous Registration | When the last failed join attempt happened. Only failed attempts are logged. | |
Error Phase | The stage the join stopped in: pre-check, discover, auth or join. | Any other value: A join attempt failed: read Client ErrorCode, Server ErrorCode and Server Message. |
Client ErrorCode | The client error code that came back (an HRESULT). | |
Server ErrorCode | The server's error code, when the server answered with one. | |
Server Message | The server's message that came with the error code. | |
Https Status | The HTTP status the server returned. | |
Request ID | The request ID the client sent, to match with the server's logs. | |
AadRecoveryEnabled | YES when the keys on the device are not usable and the device is marked for recovery. | YES: The next sign-in starts the recovery and registers the device again. |
KeySignTest | PASSED when the device keys are in good health. It needs elevated rights. | Any other value: The device is usually marked for recovery then, and the next sign-in registers it again: silently on a hybrid joined device, with a prompt on a joined or registered one. |
| Ngc Prerequisite Check | ||
IsDeviceJoined | YES when the device is joined to Microsoft Entra ID. | NO: A Windows Hello for Business prerequisite that is not met. |
IsUserAzureAD | YES when the signed-in user is in Microsoft Entra ID. | NO: A Windows Hello for Business prerequisite that is not met. |
PolicyEnabled | YES when the Windows Hello for Business policy is on for the device. | NO: A Windows Hello for Business prerequisite that is not met. |
PostLogonEnabled | YES when Windows itself starts Windows Hello for Business enrollment; NO when something custom starts it. | |
DeviceEligible | YES when the device meets the hardware requirement for Windows Hello for Business. | NO: A Windows Hello for Business prerequisite that is not met. |
SessionIsNotRemote | YES when the user is signed in at the device, not remotely. | NO: A Windows Hello for Business prerequisite that is not met. |
CertEnrollment | Certificate trust: enrollment authority when the policy comes from Group Policy, mobile device management when it comes from MDM, none otherwise. | |
AdfsRefreshToken | Certificate trust with an enrollment authority: whether the device has an enterprise PRT for the user. | |
AdfsRaIsReady | Certificate trust with an enrollment authority: YES when AD FS says in its discovery metadata that it supports Windows Hello for Business, and the logon certificate template is available. | NO: A Windows Hello for Business prerequisite that is not met. |
LogonCertTemplateReady | Certificate trust with an enrollment authority: YES when the logon certificate template is valid. | NO: A Windows Hello for Business prerequisite that is not met. |
PreReqResult | The result of all the checks above: WillProvision when enrollment will start as the user next signs in. | Any other value: Windows Hello for Business will not be set up at the next sign-in. The NO values above say why. |
OnPremTGT | Cloud Kerberos trust, when CertEnrollment is none: YES when the device has a Cloud Kerberos ticket for on-premises resources. Before Windows 11 version 23H2 it was called CloudTGT. | |
CloudTGT | The name of OnPremTGT before Windows 11 version 23H2. | |
Sources
- Every field, its values and the join state table: Microsoft's article Troubleshoot devices by using the dsregcmd command (dated 27 June 2025), from Microsoft's documentation repository entra-docs at commit a776bb0, under the MIT licence: MIT License. Copyright (c) Microsoft Corporation. The meanings are written here in plain words; the example output is the article's own.
- What a missing PRT means: Microsoft's article Understanding Primary Refresh Token (PRT) in Microsoft Entra ID (dated 27 June 2025), from the same repository and commit, under the same licence.
- Error codes link to the Windows error code lookup, and AADSTS codes to the AADSTS error code lookup.
More Email and M365 tools
-
SMTP status code lookup
Read a bounce such as 550 5.7.1 or 421 4.4.2: the reply code and the enhanced code by class, subject and detail.
-
Email header analyzer
Paste message headers: each hop and its delay, SPF, DKIM and DMARC results, and Microsoft 365's SCL, BCL and SFV in words.
-
AADSTS error code lookup
Look up AADSTS50126, AADSTS700016 or any other Microsoft Entra sign-in error, alone or in a pasted message.
-
JWT and access token decoder
Read the claims of a Microsoft Entra access or ID token, with exp, iat and nbf as dates, in your browser.
-
Intune and Autopilot error codes
App install codes such as 0x87D1041C, MDM enrollment errors such as 0x8018000A, and Autopilot import errors 806 and 808.
-
Safe Links and URL Defense decoder
See the address inside a Microsoft Safe Links or Proofpoint URL Defense link as plain text, without opening it.
-
Punycode and lookalike checker
Convert xn-- names to Unicode and back, and see when a name mixes scripts or has letters that look like ASCII ones.
-
SPF and DMARC record builder
Build SPF and DMARC records, or paste one to see what each part does.
-
DKIM record checker
Check a DKIM key record: key type and length, flags and mistakes, with a long key split into 255-character strings.
-
DMARC report viewer
Open DMARC aggregate reports (.xml, .gz or .zip) in your browser: senders, counts, and SPF and DKIM alignment.
-
MTA-STS and TLS-RPT builder
Build the MTA-STS and TLS-RPT records and the policy file, or paste one to read it.