Use this topic when selecting a cmdlet, understanding ambiguous parameter-set errors, determining pipeline binding, verifying command source, or deciding whether a state-changing cmdlet supports WhatIf/Confirm via ShouldProcess.
Cmdlets
A cmdlet is a compiled or script-based PowerShell command designed to participate in PowerShell parameter binding and object pipelines. Cmdlets normally use approved Verb-Noun names and expose metadata such as parameters, parameter sets and pipeline-input capabilities.
1. Get-Command <name> — cmdlet, function, alias or exe?
2. Get-Help <cmdlet> -Full — parameter sets.
3. Approved verbs: Get-Verb.
4. Module providing it: (Get-Command <name>).Source.
5. Run with -WhatIf before changes.
cmdlet name resolved → parameters bound → runs → objects returned
Query the target state independently and inspect command-specific error/return semantics.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Do not assume a cmdlet name uniquely identifies behavior across sessions. Avoid guessing parameter combinations from examples. If pipeline input behaves unexpectedly, inspect parameter metadata and the incoming object type/property names instead of converting everything to strings.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Before a state change, confirm the command source/module and valid parameter set. Use a narrow object as input, capture the returned object/errors, and perform a separate read query against the target. This distinguishes cmdlet execution evidence from target-state evidence.
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.
- Cmdlet names identify intent, but the module/source still matters.
- Parameter sets define valid combinations; a parameter can be mandatory only in specific sets.
- Pipeline binding can occur by value or by property name depending on command metadata.
- Common parameters are provided by advanced functions/cmdlets through the PowerShell runtime.
-WhatIfdescribes intended ShouldProcess actions; it is not a universal simulator of every external side effect.
$PSVersionTable— PowerShell edition and versionGet-Command <name>— which cmdlet/function/exe runsGet-Help <cmdlet> -Full— syntax and parametersGet-ExecutionPolicy -List— execution policy per scope
ReferenceWhat it is1 section · depth on demand
Core model
Cmdlets expose rich metadata to the engine. That metadata drives tab completion, parameter validation, help syntax, pipeline binding and common parameters. When a script fails before any target change, parameter-set and binding errors are often the first step to check.
ReferenceImportant terms & boundaries2 sections · depth on demand
PowerShell boundary
Use Get-Command <cmdlet> -Syntax, .Parameters, or Get-Help to inspect parameter behavior. SupportsShouldProcess enables common -WhatIf and -Confirm behavior, but it only covers actions the command author routes through the ShouldProcess contract.
In depth
Cmdlets follow Verb-Noun with approved verbs (Get-Verb) and common parameters (-Verbose, -ErrorAction, -WhatIf, -Confirm).
Get-Service -Name Spooler | Stop-Service -WhatIf
Get-Command -Noun Service
Get-Command Get-Process -Syntax
Get-Alias ls, dir, gci
Use -WhatIf before destructive operations and full cmdlet names (not aliases) in scripts for readability. Parameter sets mean some parameters exclude others — Get-Command -Syntax shows them.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in PowerShell → Cmdlets. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/powershell/ · confidence 94%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.
Quick lookup tables
PowerShell → Cmdlets reference map
Fast lookup boundaries for PowerShell → Cmdlets.
| Item | Meaning | Evidence boundary |
|---|---|---|
| Verb-Noun | Naming convention | name does not prove module/source |
| Parameter set | Valid parameter combination | binding failure can occur before action |
| Pipeline input | By value/property name | successful binding does not prove data correctness |
| ShouldProcess | Change-confirmation contract | WhatIf is limited to implemented actions |
| Output object | Structured result | returned object may be request/result, not final target state |