HomeNewsletterCommunityMVP FeedToolsArchiveBlogToday's NewsAboutServicesWebsitesQuick Links★ Pro Subscribe free
← Back to Blog
Windows Hello for Business Windows Hello for BusinessWHfBdsregcmdEntra IDPRTService DeskFree Tool

dsregcmd /status Has 100 Lines and the Fault Hides in Two: Why I Built a Free Reader

IA
Imran Awan
28 November 2026

Ask a service desk analyst to read dsregcmd /status and you get the same answer every time: it is about a hundred lines, and nobody knows which two matter. So the ticket goes up a level, then another, and the user waits. I built a free tool that reads the output for you, says in plain English what is wrong, and names who should act next. This post explains why, and the two lessons that shaped it. One of them was a mistake of my own.

The short version

dsregcmd /status already holds the answer to most Windows Hello and single sign-on tickets, but in a form only specialists read. The free dsregcmd Reader takes the pasted output and gives a verdict, who acts next, the next step, and every line explained. It runs in your browser and uploads nothing. Two lessons from Microsoft's own pages shaped it. First, read the error code before the HTTP status: federation errors show HTTP status 0 too. Second, the failure lines only appear when the failure is newer than the last successful token update, so they always mean the token has not renewed since.

Six terms you need for this post
dsregcmd /status
A command built into Windows. It prints the device's Microsoft Entra registration state, the signed-in user's Windows Hello state and their sign-in token.
PRT (Primary Refresh Token)
The token behind single sign-on to Microsoft 365 and other cloud apps. dsregcmd shows it on the AzureAdPrt line.
NgcSet
YES when a Windows Hello key is set for the signed-in user on this device.
Attempt Status
The error code of the last failed attempt to get or renew the token, written in hexadecimal, for example 0xc000023c.
CloudAP
The part of Windows that talks to Microsoft Entra when you sign in. Its error codes start with 0xc004.
WS-Trust (federation)
The protocol Windows uses to get a token from a federated identity provider, that is, a sign-in service that is not Microsoft Entra itself.

The problem: about a hundred lines, and the fault hides in two

The output comes in blocks: Device State, Device Details, Tenant Details, User State, SSO State, Diagnostic Data, two proxy blocks and, usually only when Windows Hello is not set up yet, an Ngc Prerequisite Check. On a healthy laptop most lines say YES or SUCCESS. On a broken one the answer usually sits in one of two places: the AzureAdPrt line with the diagnostic lines under it, or the PreReqResult line at the bottom.

Three things make that hard for a service desk:

So almost every Windows Hello ticket gets escalated, including the ones that need no action.

📋 Note: there is already a good tool for the device side. Microsoft hosts a samples page for DSRegTool, a PowerShell troubleshooter that “performs more than 50 different tests” on the device itself. The Reader is different on purpose. It reads output you already have, so the person on the phone can use it without installing anything or running a script on someone else's laptop.
The DSRegTool main menu in a PowerShell window, with options to troubleshoot Microsoft Entra register, join and hybrid join, verify the Service Connection Point, verify device health, verify the Primary Refresh Token and collect logs
The DSRegTool menu, from Device Registration Troubleshooter Tool (Microsoft Learn samples). It runs on the affected device. Used with permission from Microsoft.

Why it happens: the answer is a code, and the codes look alike

Microsoft documents every line. One page describes the dsregcmd fields, and another lists the error codes for token failures. The trouble is that you need both pages open at once, and two of the rules are easy to miss. I missed both while building the tool.

Lesson 1: read the error code before the HTTP status

When a token request fails, dsregcmd shows an Attempt Status, which Microsoft describes as “The client error code that's returned (HRESULT).” It also shows an HTTP status: “The HTTP status returned by the endpoint.” HTTP status 0 looks like nothing answered, so it is tempting to call every one of them a network problem. My first version did exactly that.

This capture is from one enterprise laptop. The device itself was healthy. The user had no token. Real capture, identifiers removed.

dsregcmd /status: SSO State and Ngc Prerequisite Check (real capture, identifiers removed)
AzureAdPrt : NO AcquirePrtDiagnostics : PRESENT Attempt Status : 0xc00484c1 User Identity : removed Credential Type : Password Correlation ID : removed HTTP Error : 0x800484c1 HTTP status : 0 Server Error Code : IsUserAzureAD : NO PostLogonEnabled : NO PreReqResult : WillNotProvision

HTTP status 0 and no server error code. But the code is on Microsoft's list. 0xc00484c1 is AAD_CLOUDAP_E_WSTRUST_SAML_TOKENS_ARE_EMPTY, and the cause Microsoft gives is: “You received an error from the WS-Trust protocol endpoint (required for federated authentication).” That is a federation problem, owned by whoever runs identity, not by the network team.

There was a second clue in the same output. The sign-in name in the diagnostics used a different domain suffix from the user's name in Microsoft Entra, and IsUserAzureAD said NO. Microsoft sets that line to YES only “if the logged-in user is present in Microsoft Entra ID”. Windows was asking for a token under a name Entra did not hold for that person.

⚠ Warning: do not send a ticket to the network team just because HTTP status is 0. Look up the Attempt Status first. Microsoft's first fix for 0xc00484c1 does mention the network: “Make sure that the network proxy doesn't interfere with or modify the server response.” But the error itself comes from the federation endpoint.

Is it this message, or a neighbour?

These codes all come from Microsoft's page on primary refresh token issues. The quoted text in the third column is Microsoft's own wording.

Attempt StatusMicrosoft's nameWhat Microsoft says causes itWhere to start
0xc000023cSTATUS_NETWORK_UNREACHABLETwo causes. “The device received a 4xx HTTP error response from one of the following sources:” Microsoft Entra or a WS-Trust endpoint. Or: “A network connectivity issue to a required endpoint exists.”HTTP status 4xx: identity team, with the server error code from event 1081 (Entra) or 1088 (WS-Trust). No HTTP answer: network team. Event 1022 in the Entra analytic log shows the URL, and event 1084 in the operational log shows the error code from the network stack.
0xc00484c1AAD_CLOUDAP_E_WSTRUST_SAML_TOKENS_ARE_EMPTY“You received an error from the WS-Trust protocol endpoint (required for federated authentication).”Identity or federation owner. Event 1088 holds the server error code.
0xc004848cAAD_CLOUDAP_E_HTTP_CERTIFICATE_URI_IS_EMPTY“The Metadata Exchange (MEX) endpoint is configured incorrectly. The MEX response doesn't contain any certificate endpoint URLs.”Whoever runs federation.
0xc004844cAAD_CLOUDAP_E_OAUTH_USERNAME_IS_MALFORMED“The UPN for the user isn't in the expected format.”Identity team: check the sign-in name.
0xc000005fSTATUS_NO_SUCH_LOGON_SESSION“The user realm discovery failed because the Microsoft Entra authentication service can't find the user's domain.”Identity team: check the domain is verified in Entra.
0xc00000d0STATUS_REQUEST_NOT_ACCEPTED“The device received a 400 Bad Request HTTP error response”Identity team: read the server error code and look up the AADSTS code.
0xc000006dSTATUS_LOGON_FAILURE“The device can't connect to the Microsoft Entra authentication service.”Local IT first: the connection and the operational log.

The full list, with Microsoft's fix for each code, is on Troubleshoot primary refresh token issues on Windows devices.

Lesson 2: the failure lines mean the token has not renewed since

This capture is from my own laptop, on a day when single sign-on still worked. Real capture, identifiers removed.

dsregcmd /status: SSO State (real capture, identifiers removed)
AzureAdPrt : YES AzureAdPrtUpdateTime : 2026-11-26 17:16:22.000 UTC AzureAdPrtExpiryTime : 2026-12-12 13:00:43.000 UTC AcquirePrtDiagnostics : PRESENT Previous Prt Attempt : 2026-11-28 13:00:28.244 UTC Attempt Status : 0xc000023c User Identity : removed Credential Type : unknown Correlation ID : removed HTTP Error : 0x80072ee7 HTTP status : 0

The token is present, so the user notices nothing. 0xc000023c is STATUS_NETWORK_UNREACHABLE, and Microsoft gives it two causes: a 4xx error answer from Microsoft Entra or a federation endpoint, or a network connectivity issue. The HTTP lines tell them apart. HTTP status 0 means no server answered, and the HTTP Error line is, in Microsoft's words, the “WinHttp transport error code.” Here it is 0x80072ee7, which is WinHTTP error 12007, ERROR_WINHTTP_NAME_NOT_RESOLVED. Microsoft lists that among “Common general network-related issues.” So this time it really is the network.

✅ Tip: the order that works is: the Attempt Status first, then the HTTP lines, but only to choose between the causes Microsoft lists for that code. A 4xx HTTP status means a server answered, so the network got the request through.

My second version of the tool called this a harmless blip. I had noticed that the expiry time sat almost exactly 14 days after the failed attempt (15 seconds out), and assumed the token had renewed seconds later. That was wrong, and Microsoft says so twice. The dsregcmd page says: “The diagnostics information is displayed only if the acquisition or refresh failure happened after the last successful PRT update time”. So the token had not renewed since 26 November, about 44 hours earlier. And the PRT page does not mention 14 days at all: “Once issued, a PRT is valid for 90 days and is continuously renewed as long as the user actively uses the device.”

⚠ Gotcha: do not work out renewal times from the expiry date. Read AzureAdPrtUpdateTime instead. Microsoft says: “The CloudAP plugin renews the PRT every 4 hours during Windows sign in.” An update time much older than that, with failure lines under it, means the token is not renewing.

Why the expiry moved, I do not know, and I could not find a Microsoft page that explains it. The tool no longer guesses.

How to verify: collect the output the right way, then read it in order

Microsoft's instruction is short: “Run the dsregcmd /status utility as a domain user account.” The user lines and the token belong to whoever runs the command, so run it as the affected person, in a normal window.

  1. Ask the user to open Command Prompt. Not "Run as administrator".
  2. Run the command below. Nothing appears on screen: the output goes to the clipboard.
  3. If you are helping remotely, they paste it into a chat or an email to you. Or they save it to a file with the second command and send you the file.
Command Prompt: copy the output, or save it to the Desktop
dsregcmd /status | clip dsregcmd /status > "%USERPROFILE%\Desktop\dsreg.txt"

Then read it in this order. The second column is Microsoft's description of each line.

LineMicrosoft saysGoodBad
AzureAdJoined“Set the state to YES if the device is joined to Microsoft Entra ID.”YESNO: nothing else can work until the device is joined.
DeviceAuthStatus“SUCCESS if the device is present and enabled in Microsoft Entra ID.”SUCCESSFAILED: look at the device record in Entra.
AzureAdPrt“Set the state to YES if a Primary Refresh Token (PRT) is present on the device for the logged-in user.”YES, with a recent AzureAdPrtUpdateTimeNO: read the Attempt Status under it.
Attempt Status“The client error code that's returned (HRESULT).”Not shown at allAny code: look it up in the table above.
NgcSet“Set the state to YES if a Windows Hello key is set for the current logged-in user.”YES once Hello is set upNO: read PreReqResult.
PreReqResult“Provides the result of all WHFB prerequisites evaluation.”WillProvisionWillNotProvision: find the line above it that says NO.

One line catches people out. PostLogonEnabled NO does not mean Windows Hello is switched off. Microsoft: “If the state is set to NO, it indicates that Windows Hello for Business enrollment is triggered by a custom mechanism.” If you expected the set-up prompt after sign-in, check your Hello policy.

The fix: a free reader that does the reading

The dsregcmd Reader is a single page on EndpointWeekly. It is free, needs no sign-up and runs entirely in your browser. Nothing you paste is uploaded or stored. It reads the codes from Microsoft's list first, and uses the HTTP status only where Microsoft gives a code more than one cause.

  1. Open the Reader. It starts with made-up example data, so you can see a result straight away.
  2. Paste the output into the box (it replaces the example), choose Open a saved file, or drop the .txt file on the box.
  3. Read the verdict at the top, then Who acts next and Next step.
  4. Click Copy for the ticket, or Copy without IDs before you send it outside your organisation.
  5. Open Every line of the output, explained when you want to know what a line means.
The dsregcmd Reader: on the left the pasted dsregcmd output, on the right the verdict The laptop is fine. The user has no sign-in token, with Who acts next set to Identity team, status chips, and the first three findings
Screenshot of the dsregcmd Reader with its built-in example, which is made-up data (contoso.example). The example is the Lesson 1 fault: the code is decoded from Microsoft's list and the ticket goes to the identity team, not the network team.

And this is the Reader's verdict for the token in Lesson 2:

dsregcmd Reader verdict: Signed in with a valid token, but it has not renewed for about 44 hours. Who acts next: Network team. Chips show Join Hybrid, Device auth SUCCESS, User token YES, Token renewal Not renewed for 44 h, Hello key YES, Key sign test PASSED
Screenshot of the Reader. Input: the made-up example laptop, with its SSO State lines replaced by the Lesson 2 capture shown above (identifiers removed).

Who acts next is the part I wanted most. Every finding gets an owner:

OwnerTypical findings
Local ITRun as SYSTEM, the security chip switched off, a failed key signing test, a remote session
Network teamNetwork codes such as 0xc000023c when no server answered (HTTP status 0), and WinHTTP errors such as 12007
Identity teamFederation and sign-in name codes such as 0xc00484c1, 0xc000023c with a 4xx HTTP status, AADSTS errors, a user not present in Entra
Endpoint or Intune teamA device that is not joined, Hello not enabled by policy, PostLogonEnabled NO
No actionA healthy reading
✅ Tip: if you help users remotely, the Reader page also links a small helper, Collect-Dsregcmd.cmd. It runs dsregcmd /status as the person who double-clicks it, saves the result to their Desktop and copies it to the clipboard. It changes nothing on the laptop. Open it in Notepad first if you want to read it.
📋 Note: the Reader only knows what the laptop knows. It cannot look inside Microsoft Entra, so it cannot tell you whether a Windows Hello key was deleted in the cloud. On a shared device, Microsoft also warns: “On a shared device, this diagnostics information could be from a different user's login attempt.”

Proof it worked: what a good reading looks like

After the owner fixes the cause, ask the user to sign in again with the network connected. Microsoft: “If the user doesn't have internet connection during that time, CloudAP plugin will renew the PRT after the device is connected to the internet and a new Windows sign in is done.” Then collect the output again and paste it in.

Illustrative output: a healthy reading (made-up values)
User State NgcSet : YES SSO State AzureAdPrt : YES AzureAdPrtUpdateTime : 2026-11-28 15:42:10.000 UTC Diagnostic Data KeySignTest : PASSED

If the update time does not move, the cause is not fixed. Read the new Attempt Status and start again from the table.

References

Microsoft documentation
Related on EndpointWeekly
Was this post helpful?
React below — no account needed
Share this post
LinkedIn X / Twitter Reddit Bluesky

More from EndpointWeekly

Windows Hello for Business
WHfB "Your credentials could not be verified": two causes, one…
One Hello sign-in error, two unrelated causes: a network that is not ready yet, or a key…
Windows Hello for Business
Windows Hello and PRT remediations: what is safe to automate and…
Clear-Tpm, Ngc folder deletes, certutil, WAM purges and dsregcmd /leave destroy state.…
Windows Hello for Business
dsregcmd /status Decoded: The Complete Field Reference for WHfB…
One command answers more WHfB questions than any portal - and its forty-plus fields come…