> ## Documentation Index
> Fetch the complete documentation index at: https://help.allthenticate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Find your Windows setup path

> Run whoami, hostname and dsregcmd /status on one computer, paste the output, and see which Allthenticate Windows setup path and guides apply.

The path depends on the account a person signs in with and how the computer is joined.

Sign in as a user who will use Allthenticate, not an IT or admin account. Open a Command Prompt without "Run as administrator" and run:

```txt theme={null}
whoami
hostname
dsregcmd /status
```

Paste the results below. Nothing you paste leaves your browser. For what every `dsregcmd /status` field means, see [Microsoft's dsregcmd reference](https://learn.microsoft.com/en-us/entra/identity/devices/troubleshoot-device-dsregcmd).

## The decision at a glance

```mermaid theme={null}
flowchart TD
    start["Start"] --> os{"Is the computer running Windows?"}
    os -- "No: Mac or Linux" --> desktop["Desktop sign-in guide<br>/help/desktop/overview"]
    os -- "Yes" --> who["Open Command Prompt and run whoami"]
    who --> prefix{"What comes before the backslash?"}
    prefix -- "The computer's name" --> A["Path A: local accounts<br>/windows/local-accounts"]
    prefix -- "AzureAD" --> B["Path B: Entra ID<br>/windows/entra/certificate-sign-in<br>or /windows/entra/passkeys"]
    prefix -- "Your company's domain" --> ds["Run dsregcmd /status"]
    ds --> dj{"DomainJoined?"}
    dj -- "NO: Entra joined only" --> B
    dj -- "YES" --> aj{"AzureAdJoined?"}
    aj -- "NO" --> C["Path C: Active Directory<br>/windows/active-directory"]
    aj -- "YES" --> D["Path D: hybrid<br>/windows/active-directory"]
```

## How the path is decided

Start with the part of the `whoami` result before the backslash:

| `whoami` shows | Account | Path |
| - | - | - |
| The computer's name (the same as `hostname`), for example `desktop-7h2k\maria` | Local account, including personal Microsoft accounts such as Outlook.com | [A. Local accounts](https://help.allthenticate.com/windows/local-accounts.md) |
| `AzureAD`, for example `azuread\mariagarcia` | Cloud-only Entra ID account | [B. Entra ID](https://help.allthenticate.com/windows/entra/certificate-sign-in.md) |
| Your company's domain, for example `acmecorp\mgarcia` | Active Directory account, possibly synced to Entra ID | Check `dsregcmd /status` (next table) |

For a domain account, find `DomainJoined` and `AzureAdJoined` near the top of the `dsregcmd /status` output:

| `DomainJoined` | `AzureAdJoined` | Computer | Path |
| - | - | - | - |
| `YES` | `NO` | Joined to on-premises Active Directory | [C. Active Directory](https://help.allthenticate.com/windows/active-directory.md) |
| `YES` | `YES` | Hybrid joined | [D. Hybrid](https://help.allthenticate.com/windows/active-directory.md) |
| `NO` | `YES` | Entra joined, with an account synced from Active Directory | [B. Entra ID](https://help.allthenticate.com/windows/entra/certificate-sign-in.md) |
| `NO` | `NO` | Workgroup or standalone, not joined to any directory: people sign in with local accounts | [A. Local accounts](https://help.allthenticate.com/windows/local-accounts.md) |

If your organization syncs Active Directory to Entra ID with [Entra Connect](https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/whatis-azure-ad-connect), `whoami` shows your company's domain even on a computer joined only to Entra ID. That computer signs in through Entra ID, so it follows Path B.

`EnterpriseJoined : YES` means legacy on-premises federation, a rare setup. Email [help@allthenticate.com](mailto:help@allthenticate.com) with the output of both commands and we'll scope it with you.

## Entra ID: certificates or passkeys

On Path B, use [certificate sign-in](https://help.allthenticate.com/windows/entra/certificate-sign-in.md) when both of these are true:

* Your organization is on a paid Allthenticate business plan.
* The users' sign-in domain is **managed** in Entra ID, not federated to another identity provider such as Okta or AD FS. Check under **Entra ID** > **Domain names** in the [Microsoft Entra admin center](https://entra.microsoft.com).

Otherwise, use [passkeys](https://help.allthenticate.com/windows/entra/passkeys.md).

Cloud-only users (`AzureAD\...`) on **hybrid-joined** computers can't use certificates from your domain. They sign in with passkeys, which on hybrid computers also need the Entra Kerberos server object described in the passkeys guide.

If your hybrid-joined computers already use passkeys with an Entra Kerberos server object, those keep working. Certificate logon is the standard path for hybrid because users are enrolled automatically from Active Directory. Email [help@allthenticate.com](mailto:help@allthenticate.com) if you'd like to switch.

## Check a whole fleet

To see how every computer is joined, export the lists from Active Directory and Entra ID.

For computers in on-premises Active Directory, run this in PowerShell as an administrator on a domain controller or any computer with the RSAT Active Directory module:

```powershell theme={null}
Get-ADComputer -Filter * -Properties OperatingSystem, LastLogonDate |
  Select Name, OperatingSystem, LastLogonDate |
  Export-Csv C:\Temp\domain-computers.csv -NoTypeInformation
```

The `LastLogonDate` column helps you spot stale entries, such as computers that haven't checked in for 90 days or more.

`Get-ADComputer` only sees computers in on-premises Active Directory. For computers joined to Entra ID, use the [Microsoft Graph PowerShell module](https://learn.microsoft.com/en-us/powershell/microsoftgraph/installation) with an account that can read devices, such as a Global Reader:

```powershell theme={null}
Install-Module Microsoft.Graph.Identity.DirectoryManagement -Scope CurrentUser
Connect-MgGraph -Scopes Device.Read.All
Get-MgDevice -All -Property DisplayName, OperatingSystem, OperatingSystemVersion, TrustType, ApproximateLastSignInDateTime |
  Where-Object OperatingSystem -eq 'Windows' |
  Select DisplayName, OperatingSystemVersion, TrustType, ApproximateLastSignInDateTime |
  Export-Csv C:\Temp\entra-devices.csv -NoTypeInformation
```

`TrustType` shows how each device is joined ([Microsoft's explanation of join types](https://learn.microsoft.com/en-us/entra/identity/devices/concept-directory-join)): `AzureAd` is Entra joined, `ServerAd` is hybrid joined, and `Workplace` is only registered (a personal device, which signs in with a local or personal account).

Computers in active use that appear in neither list are usually workgroup computers with local accounts (Path A).

### Check which accounts sign in and who is a local administrator

On one computer, in PowerShell as an administrator:

```powershell theme={null}
Get-LocalUser | Select Name, Enabled, LastLogon, Description
Get-LocalGroupMember -Group "Administrators"
query user
```

In the `Get-LocalGroupMember` output, `DOMAIN\username` is a domain account with local admin rights, `DOMAIN\Domain Admins` is a domain group (normal), `MACHINENAME\Administrator` is the built-in local administrator, and `MACHINENAME\someuser` is a local account created on that computer.

To collect local administrators from every domain-joined computer, with PowerShell remoting enabled, run this on a domain controller or admin workstation with the Active Directory module:

```powershell theme={null}
$computers = Get-ADComputer -Filter * | Select -ExpandProperty Name
Invoke-Command -ComputerName $computers -ScriptBlock {
  Get-LocalGroupMember -Group "Administrators" |
    Select @{N='Computer';E={$env:COMPUTERNAME}}, Name, ObjectClass, PrincipalSource
} -ErrorAction SilentlyContinue |
  Export-Csv C:\Temp\local-admins.csv -NoTypeInformation
```

Without remoting, run the same `Get-LocalGroupMember` command through your RMM tool, a Group Policy startup script or Intune. Look for the same local account on many computers (a shared local administrator password, unless you use LAPS), end users who are local administrators, and accounts you don't recognize.

### If running scripts is a hassle

Answer these three questions instead:

1. Do users sign in with their Active Directory domain account, or with local accounts created on each computer?
2. Do regular users have local administrator rights on their own computers, or only IT?
3. Is there a shared local administrator account, such as the built-in `Administrator` or a generic `ITadmin`, that's the same on every computer? If so, do you use [LAPS](https://learn.microsoft.com/en-us/windows-server/identity/laps/laps-overview) to give each computer its own password?

Shared local administrator passwords across computers are one of the highest-risk patterns in a fleet.

You can send the CSVs (`domain-computers.csv`, `entra-devices.csv` and `local-admins.csv`), `dsregcmd /status` from one or two representative computers, or your answers to these questions with the [Windows Environment Scoping Form](https://allthenticate.notion.site/6e6577d2c0674cfa813ef528fc554060).

## Common mix-ups

> [accordion] We set up Entra ID, so our computers are joined now, right?
>
> No. Creating an Entra ID tenant or adding users to it doesn't change any computer. A computer is Entra joined only after someone joins it under **Settings** > **Accounts** > **Access work or school**, and from then on people sign in to it with Entra ID accounts.

> [accordion] The computer is domain joined, but the user signs in with a local account
>
> Use Path A. Allthenticate follows the account, and the Allthenticate tile works for local accounts on any computer.

> [accordion] The computer runs Windows Home
>
> Windows Home can't join Entra ID or a domain, so its users have local or personal Microsoft accounts. Use Path A.

> [accordion] The user signs in with a personal Microsoft account (Outlook.com, Hotmail)
>
> To Windows, a personal Microsoft account is a local account. `whoami` shows the computer's name, so use Path A. The Allthenticate tile works the same way.

## Still not sure?

Send us the output of `whoami` and `dsregcmd /status` (the top section is enough) by email to [help@allthenticate.com](mailto:help@allthenticate.com), or fill out the [Windows Environment Scoping Form](https://allthenticate.notion.site/6e6577d2c0674cfa813ef528fc554060). We'll tell you which path to follow.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.