Standard user
dsregcmd /status
dsregcmd /status
Shows whether the device is domain joined, Microsoft Entra joined or hybrid joined, and its SSO token state.
Single sign-on to Microsoft 365 fails, or a device is "Pending" in Microsoft Entra ID.
Look up the error code in the hybrid join troubleshooting guide.
Privilege Standard userState impact Read-onlyProduction Unknown
Field glossary
Important fields projected from persisted Command guidance.
AzureAdJoined, DomainJoined, WorkplaceJoined, DeviceId, AzureAdPrt, AzureAdPrtUpdateTimeImportant persisted output field; use surrounding guidance for interpretation.
Used in these Topics
Each relation carries both placement role and operational semantic: verifies, configures, troubleshoots, collects evidence, changes state or general.
Evidence boundary
What this output can establish — and where you must not over-claim.
Shows the device join state and whether the user has a primary refresh token.
Does not prove Conditional Access will allow sign-in.
Look up the error code in the hybrid join troubleshooting guide.
Command guidance
Execution context
Standard user
Use when
Single sign-on to Microsoft 365 fails, or a device is "Pending" in Microsoft Entra ID.
Important fields
AzureAdJoined, DomainJoined, WorkplaceJoined, DeviceId, AzureAdPrt, AzureAdPrtUpdateTime
Common problems
AzureAdJoined NO on a hybrid device; AzureAdPrt NO (no primary refresh token)
Operational impact
Read-only.
Technical context
Run it in the user's context to see the PRT state. The Diagnostic Data section shows the last join error.