Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Cmdlets

Direct answer

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.

When to use this

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.

First 30 seconds

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.

Operational verification

cmdlet name resolved → parameters bound → runs → objects returned

Evidence · next step

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
Common mistakes
Common traps

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.

Platform / version applicability
Windows execution, automation and observability
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 execution, automation and observability
Scope / prerequisiteUse this topic when selecting a cmdlet, understanding ambiguous parameter-set errors, determining pipeline binding, ver…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
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

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 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
  • 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.
  • -WhatIf describes intended ShouldProcess actions; it is not a universal simulator of every external side effect.
Key checks
  • $PSVersionTable — PowerShell edition and version
  • Get-Command <name> — which cmdlet/function/exe runs
  • Get-Help <cmdlet> -Full — syntax and parameters
  • Get-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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 execution, automation and observability current

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%
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
powershell cmdletsverb noun powershellpowershell parameter setspowershell common parameters
Embedded reference data

Quick lookup tables

PowerShell → Cmdlets reference map

Fast lookup boundaries for PowerShell → Cmdlets.

ItemMeaningEvidence boundary
Verb-NounNaming conventionname does not prove module/source
Parameter setValid parameter combinationbinding failure can occur before action
Pipeline inputBy value/property namesuccessful binding does not prove data correctness
ShouldProcessChange-confirmation contractWhatIf is limited to implemented actions
Output objectStructured resultreturned object may be request/result, not final target state
Confirmation

Confirm action

Continue?