Pcornel
Browse topics
Options
Recent
Favorites
Identity · Technical reference

Computers

Direct answer

A domain-joined Windows machine has a computer account with a SID and machine password used to maintain a secure relationship with the domain. The object can also hold SPNs and management attributes.

When to use this

Use this topic for computer-account identity, join state, secure-channel reasoning, SPN ownership and directory-side machine troubleshooting.

First 30 seconds

1. Get-ADComputer <c> -Properties Enabled,LastLogonDate,OperatingSystem.

2. Secure channel: Test-ComputerSecureChannel -Repair on the client.

3. OU for GPOs.

4. Stale computers cleanup.

5. LAPS attributes.

Operational verification

computer account → secure channel → GPOs

Evidence · next step

Test the specific service authentication or compare directory replicas if the symptom is DC-dependent.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

Do not use delete/recreate/rejoin as the first move. It changes multiple state variables and can destroy evidence about DNS, time, replication or credential mismatch.

Platform / version applicability
Windows Server Active Directory and identity
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows Server Active Directory and identity · Windows / Windows Server / PowerShell
Key commandGet-ADComputer <name> -Properties *
Scope / prerequisiteUse this topic for computer-account identity, join state, secure-channel reasoning, SPN ownership and directory-side ma…
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Operational command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

Verify the computer object on a known DC, then test the client’s domain secure channel and the actual service/authentication workflow. Compare DCs only when stale replicated state is suspected.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Computer object existence does not prove the machine currently has a healthy domain secure channel.
  • The machine account has credentials that change independently of human user passwords.
  • Duplicate/incorrect SPNs can create authentication problems even when the computer object exists.
  • Deleting/rejoining is not the first diagnostic step for a suspected trust relationship failure.
Key checks
  • Get-ADDomain — domain details and FSMO holders
  • Get-ADDomainController -Filter * | Select HostName,Site,IsGlobalCatalog — DCs
  • dcdiag /v /e /q — DC health tests (errors only with /q)
  • repadmin /replsummary — replication summary
  • nltest /dsgetdc:<domain> — DC locator
ReferenceWhat it is1 section · depth on demand

Core model

Computer accounts are active security principals, not inventory placeholders. Their relationship with the domain depends on DNS, DC location, time and matching machine-account credential state.

ReferenceImportant terms & boundaries2 sections · depth on demand

What the evidence shows

For trust failures, capture client name/domain, selected DC, time, DNS, computer SID and secure-channel result before resetting the account or rejoining the machine.

In depth

Computer accounts authenticate machines with a password rotated automatically every 30 days.

Get-ADComputer srv01 -Properties OperatingSystem,LastLogonDate,PasswordLastSet,ServicePrincipalName
Test-ComputerSecureChannel -Verbose
Test-ComputerSecureChannel -Repair -Credential (Get-Credential)
Reset-ComputerMachinePassword -Server dc01
nltest /sc_verify:corp.example.com

Broken secure channels ("The trust relationship between this workstation and the primary domain failed") come from VM snapshot reverts, duplicate names or restored images — repair rather than rejoin when possible. Restrict who can join computers (default: any user can join 10 — set ms-DS-MachineAccountQuota to 0).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Computer account commands

Get-ADComputer pc01 -Properties LastLogonDate,OperatingSystem,PasswordLastSet
Test-ComputerSecureChannel -Verbose
Test-ComputerSecureChannel -Repair -Credential EXAMPLE\admin
Reset-ComputerMachinePassword -Credential EXAMPLE\admin

Documented example, not captured output. "The trust relationship between this workstation and the primary domain failed" means a broken machine password (often after restoring an old snapshot); repair the secure channel instead of rejoining.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows Server Active Directory and identity current

Authoritative/upstream documentation reviewed for bounded claims in Active Directory Domain Services → Computers. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/ · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
ad computercomputer accountmachine accountdomain joined computer
Embedded reference data

Quick lookup tables

Active Directory Domain Services → Computers reference map

Fast lookup boundaries for Active Directory Domain Services → Computers.

BoundaryMeaningEvidence limit
Computer objectDirectory identitynot host reachability
Machine passwordSecure-channel credentialindependent lifecycle
SPNService identity mappingduplicates can break Kerberos
Secure channelMachine↔domain relationshipdepends on DNS/time/DC
Confirmation

Confirm action

Continue?