Pcornel
Automation · PowerShell Automation

Cmdlets

Cheat sheet · https://pcornel.dk/topic.php?topic=5230

Back to the Topic

Answer

Cmdlets are PowerShell's built-in commands named Verb-Noun, such as Get-Service or Set-Item, which output objects. Find them with Get-Command and learn them with Get-Help -Examples.

Remember

  • Cmdlets are named Verb-Noun.
  • Get-Command and Get-Help -Examples find and explain them.
  • They output objects you can inspect with Get-Member.

First checks

  • Get-Command -Noun Service — find cmdlets
  • Get-Help Get-Service -Examples — examples
  • Get-Verb — approved verbs

Verify in this order

Verb-Noun cmdlet → objects

Where it usually breaks

Script/input → command/module binding → local/remoting session → request accepted → command result → target object read-back → effective runtime state → workload.

Cmdlets · PowerShell operational reference

BoundaryCmdlets reference
Runtime identityPowerShell edition/version + command/module source
Persistent intentScript/module/config prerequisites under source control
VerificationRead-only discovery → execution evidence → independent target read-back
Output contractStructured objects/streams before formatting
Failure boundarySeparate engine/binding from transport/API/native and target-state failures

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5230

Confirmation

Confirm action

Continue?