Parameter

noun

say it: “puh-RAM-uh-ter” /pəˈræmətər/

An extra instruction for a PowerShell command, written after a dash, such as -Force or -Path, sometimes followed by a value.

What is Parameter?

A parameter gives a command extra information, written as -Name value. You can shorten parameter names as long as they stay unambiguous.

Get-ChildItem -Path C:\Photos -Filter *.jpg -Recurse

In a sentence

  • “The -Directory parameter made Get-ChildItem list only the folders.”
  • “Tab finishes a parameter's name after you type the dash and a letter or two.”

Level: Novice · More PowerShell terms at this level

Updated

In other subjects