Administrator (elevated prompt)
Test-ComputerSecureChannel
Test-ComputerSecureChannel
Tests the trust between the local computer and its domain. Returns True or False.
A computer shows "The trust relationship between this workstation and the primary domain failed".
Repair with Test-ComputerSecureChannel -Repair -Credential <domain\admin>.
Privilege Administrator (elevated prompt)State impact Read-onlyProduction Unknown
Field glossary
Important fields projected from persisted Command guidance.
True / FalseImportant persisted output field; use surrounding guidance for interpretation.
with -Verbose the domain controller usedImportant 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 whether the secure channel to the domain works.
Does not explain why it broke.
Repair with Test-ComputerSecureChannel -Repair -Credential <domain\admin>.
Command guidance
Execution context
Administrator (elevated prompt)
Use when
A computer shows "The trust relationship between this workstation and the primary domain failed".
Important fields
True / False; with -Verbose the domain controller used
Common problems
computer password out of sync with AD (restored snapshot, duplicate name)
Operational impact
Read-only.
Technical context
Without -Repair the command only tests. -Repair -Credential <admin> resets the machine password.