Last updated on November 11th, 2026 at 07:52 pm
Asked by IT, a VPN form or a sign-in screen what domain this PC is on? In Command Prompt or Terminal, run dsregcmd /status and read Device State. DomainJoined : YES plus a DomainName means an Active Directory domain. AzureAdJoined : YES means Microsoft Entra ID. Both NO means no domain (other tools then show WORKGROUP). Settings > System > About is the visual check.
Applies to: Windows 11, version 24H2 and later. Read-only; no admin rights needed.
First, which kind of PC do you have?
A Windows 11 PC can be tied to an organization in a few different ways, and only some of them involve a domain name. A domain here means an Active Directory domain: a company network that manages sign-ins and settings for many PCs from central servers. It is not your website or email domain. Microsoft Entra ID (formerly Azure Active Directory) is Microsoft’s cloud version of that idea. A workgroup is the default for home PCs and simply means “not managed by a domain.”
| What you have | Typical signs | Does it have a domain name? |
|---|---|---|
| Workgroup (home or unmanaged PC) | You sign in with a Microsoft account or a local account you created | No. Tools show WORKGROUP or another workgroup name |
| Active Directory domain | Company laptop; sign-in may show “Sign in to:” with a short company name | Yes, such as corp.contoso.com |
| Microsoft Entra joined | You signed in with a work email during setup; no office network needed | No Active Directory domain, but an organization (tenant) name |
| Hybrid joined | Company laptop that is on the domain and also registered with Entra ID | Yes, plus the tenant name |
If you are on Windows 11 Home, the answer is almost always workgroup, because Home can’t join an Active Directory domain. The check below tells you for certain.
Read the answer from dsregcmd /status
dsregcmd is a built-in tool that reports how a device is registered. One run covers both the domain and Entra ID.
- Press Windows key + R, type
cmdand press Enter. (You can also open Command Prompt in Windows 11 or Terminal any other way. Either works.) - Type
dsregcmd /statusand press Enter. - Scroll up to the section headed Device State near the top of the output.
- Read the lines in the table below. Leave the window open if you need to copy a value.
Run it as yourself, in a normal window. Microsoft notes that some parts of the output, such as the user state, depend on the signed-in user, and an elevated window is only needed for special diagnostics.
| Field | YES or a value means | NO or missing means |
|---|---|---|
| DomainJoined | The PC is joined to an Active Directory domain | Not on an Active Directory domain |
| DomainName | Shows the domain’s name, usually the short form (Microsoft’s sample shows HYBRIDADFS) | Applies only when DomainJoined is YES |
| AzureAdJoined | The PC is joined to Microsoft Entra ID | Not Entra joined |
| EnterpriseJoined | Registered with an on-premises device registration service, a rare setup | Normal for nearly every PC |
| TenantName (under Tenant Details) | The organization’s Entra ID name, shown for Entra joined and hybrid PCs | No Entra organization |
Reading the combinations is simple. DomainJoined YES with AzureAdJoined NO is a classic company domain. DomainJoined NO with AzureAdJoined YES is a cloud-only work PC: there is no domain name to give, but the TenantName tells IT which organization manages it. Both YES means hybrid joined. Both NO means a workgroup PC.
Here is an example. Priya’s new laptop came from her employer by mail and she set it up with her work email. Her output shows AzureAdJoined : YES, DomainJoined : NO and a TenantName of Fabrikam. When the VPN form asks for a domain, the honest answer is “none, Entra joined to Fabrikam,” and her IT team will know which VPN profile she needs.
Example: The Domain or Workgroup Link
On a Windows 11 Home laptop (version 25H2), Settings > System > About has a Related links row with Domain or workgroup, System protection and Advanced system settings.

The Windows info section below showed Edition Windows 11 Home. Home cannot join a domain, so a Home PC is never on one; the link opens the computer name settings, where it shows the workgroup.
Get the exact domain name to paste into a form
dsregcmd usually shows the short name. Many forms want the full DNS name instead, such as corp.contoso.com. PowerShell gives you that and a clear yes or no in one line.
- Right-click Start and select Terminal. It opens Windows PowerShell by default.
- Type
Get-CimInstance -ClassName Win32_ComputerSystem | Select-Object Name, Domain, PartOfDomainand press Enter. - Read the three columns. Name is the PC name, Domain is the full domain name, and PartOfDomain is True when the PC is on a domain.
There is one trap. Microsoft’s documentation for this class says the Domain property returns the workgroup name when the PC is not on a domain. So a Domain value of WORKGROUP is not a domain, and PartOfDomain is your tiebreaker: False or blank means no domain.
If you would rather click than type, the System Properties window shows the same thing:
- Press Windows key + Pause to open Settings > System > About, the same page you use to check PC specs on Windows 11. (On a keyboard without a Pause key, open Settings with Windows key + I and select System > About.)
- Under the device specifications, select the Domain or workgroup link. If you don’t see it, press Windows key + R, type
sysdm.cpland press Enter. - On the Computer Name tab, look for a Domain: line (on a domain) or a Workgroup: line (not on one).
The Full device name on the About page can look like a domain, such as LAPTOP-7F2.corp.contoso.com. Treat it as a hint only. The part after the PC name is the DNS suffix, which is usually the domain on a domain PC but can also be set without one. An Entra joined PC normally shows just the PC name. In Command Prompt, ipconfig /all shows a Primary Dns Suffix line, which is another hint rather than proof.
A third route is Command Prompt: systeminfo | findstr /B "Domain" should print a Domain line. It reports the workgroup name on a non-domain PC, just like PowerShell, so read it together with one of the checks above.
Why %USERDOMAIN% and whoami can disagree with the PC
Several older guides suggest echo %USERDOMAIN% or whoami. Those commands describe the account you signed in with, not the PC. Most of the time the two match, but not always.
whoamiprints DOMAIN\username. On a domain account, the first part is the domain’s short (NetBIOS) name. On a local account, it is the PC’s own name.whoami /upnprints your sign-in name in email style, such as [email protected]. It only works for domain or Entra accounts and returns an error instead of a name for a local account.whoami /fqdnprints your account’s full directory path for a domain account. A local or Entra-only account gets an error.echo %USERDNSDOMAIN%shows the full DNS domain of a domain account. If it prints %USERDNSDOMAIN% back unchanged, the variable isn’t set, which usually means you aren’t signed in with a domain account.
Microsoft’s whoami command reference lists the /upn and /fqdn options. The mismatch case is common on shared machines. Jordan signs in to a domain-joined lab PC with a local account named labadmin, so whoami shows LAB-PC07\labadmin even though the PC itself is on corp.contoso.com. When IT asks for the PC’s domain, use the machine checks above, not the account ones.
What to send your IT team
When the request comes from a help desk ticket or a VPN setup form, send a short, complete answer so nobody has to ask again:
- Join type: workgroup, domain, Entra joined or hybrid, from dsregcmd.
- Domain name: the full name from PowerShell (corp.contoso.com) and the short name from dsregcmd (CORP), if there is one.
- PC name: type
hostnamein Command Prompt to print it. - Tenant name: for Entra joined or hybrid PCs.
Never include your password, and don’t paste the full dsregcmd output into a public form; it contains device and tenant IDs that only your own IT team needs. A typical message reads: “Hybrid joined, domain corp.contoso.com (CORP), PC name LAPTOP-7F2, tenant Contoso.”
When the result isn’t what you expected
Everything says WORKGROUP. The PC is not on a domain. If it should be, someone needs to join it, which needs Windows 11 Pro, Enterprise or another business edition (not Home) and an administrator account plus domain credentials allowed to add PCs. Microsoft lists the editions that can join a computer to a domain. On Home, start by upgrading from Windows 11 Home to Pro, then follow how to add a computer to a domain in Windows 11. For an older machine, see joining a Windows 10 PC to a domain.
No domain, but the PC is clearly a work PC. It is probably Entra joined. Confirm under Settings > Accounts > Access work or school, and look for a line such as Connected to followed by your organization’s Entra ID. If you set it up yourself and need to change that link, see joining Windows 11 to Microsoft Entra ID or removing a work or school account, or how to remove an organization from Windows 11 when the PC says it is managed by one. On a company-owned PC, leave it to IT.
The tools disagree. If PowerShell and dsregcmd agree, trust them over %USERDOMAIN% or the Full device name. If the machine checks themselves disagree, restart and check again, then mention the mismatch to IT.
You are working from home. Domain membership is stored on the PC, so the machine checks still report the domain without the office network or VPN. What can fail off the network is signing in to domain resources, not reading the name.
What people ask once they have the result
Can a PC be on a domain and Entra ID at the same time?
Yes. That is hybrid join, and dsregcmd shows DomainJoined : YES and AzureAdJoined : YES together. Microsoft’s documentation does say a PC can’t be both EnterpriseJoined and AzureAdJoined, but EnterpriseJoined is a different, rarer setup.
Which version of the domain name should I type?
If the form has one box labeled Domain next to a username, the short name (CORP) usually works, often typed as CORP\username. If it asks for a server, realm or “domain suffix,” use the full name (corp.contoso.com). When unsure, give IT both. If you also need to sign in with that name on an older machine, see how to sign in to another domain on Windows 10.
Why does my PC name look different in each tool?
Settings shows the name as it was typed. Microsoft notes that hostname prints the host name part of the full computer name, while %COMPUTERNAME% usually shows the same name in capitals. It is one name either way, so either form works in a ticket.
Once you have the join type and the name, send them to whoever asked, and keep the Terminal command handy for the next form that wants them. Microsoft’s dsregcmd /status reference explains every other field if IT asks for more.

Matt Jacobs writes and maintains the guides on Support Your Tech, which he started in 2017. He spent most of his career keeping small-business PCs running and still takes the occasional consulting job, so the steps here come from fixing the same problems on other people’s computers. Every guide is checked on his own Windows 11, Windows 10, Mac, iPhone and iPad before it goes up.