Pcornel
Browse topics
Options
Recent
Favorites
Command · Windows PowerShell / PowerShell

Inspect the latest PowerShell error record

$Error[0] | Format-List * -Force

Read-only/validation observation for the newest PowerShell ErrorRecord including exception, category, target object and invocation context.

Execution context

Windows PowerShell / PowerShell; run only against the intended target and bounded scope

Use when

Use as the prior manifest-approved bounded observation/validation surface for this exact Topic.

Then verify

inspect the referenced command/module/input and reproduce only the smallest failing operation with verbose/error context

Privilege standard user or read-only administrative context as required by the providerState impact Read-onlyProduction Unknown

Operational impact: Read-only observation/validation intent; runtime cost still depends on scope and provider behavior.
Command detailsSafety model · family · platform · verification · bundle
Privilegestandard user or read-only administrative context as required by the provider
Execution contextWindows PowerShell / PowerShell; run only against the intended target and bounded scope
State impactRead-only
Safe during productionUnknown
CategoryPowerShell Automation
Evidence levelmixed
Primary DomainWindows
Technically verifiedNeeds verification date
Family Ower Hell Utomation
PlatformWindows PowerShell / PowerShell
PrerequisiteWindows PowerShell / PowerShell; run only against the intended target and bounded scope
Output fields

Field glossary

Important fields projected from persisted Command guidance.

the newest PowerShell ErrorRecord including exception, category, target object and invocation context

Important persisted output field; use surrounding guidance for interpretation.

Command → Topic semantics

Used in these Topics

Each relation carries both placement role and operational semantic: verifies, configures, troubleshoots, collects evidence, changes state or general.

Find another Command

Reference enrichment

Evidence boundary

What this output can establish — and where you must not over-claim.

Proves

Exposes the newest PowerShell ErrorRecord including exception, category, target object and invocation context at the exact bounded observation/validation boundary restored from.

Does not prove

Does not by itself prove root cause, adjacent dependency health, policy correctness outside the selected scope, or end-to-end workload recovery.

Next check

inspect the referenced command/module/input and reproduce only the smallest failing operation with verbose/error context

Depth when you need it

Command guidance

Execution context

Windows PowerShell / PowerShell; run only against the intended target and bounded scope

Use when

Use as the prior manifest-approved bounded observation/validation surface for this exact Topic.

Important fields

the newest PowerShell ErrorRecord including exception, category, target object and invocation context

Common problems

Wrong target/context, stale state, missing provider/tool or treating one command as universal root-cause proof.

Operational impact

Read-only observation/validation intent; runtime cost still depends on scope and provider behavior.

Runtime cautions

Record target identity, runtime/tool version and timestamp separately if live output is captured as Evidence.

Technical context

Restores exact/ ownership only; this authored guidance is not observed production Evidence.

Confirmation

Confirm action

Continue?