Chapter 2. Commandlets

Commands in Windows PowerShell (WPS) are called commandlets. This chapter introduces the concept of commandlets and discusses their common parameters. It also covers aliases and the available options for getting help.

Introducing Commandlets

A regular WPS command is called commandlet (cmdlet) or function. In this chapter, we first deal only with commandlets. A function offers an opportunity to create a command in WPS itself. Because the differences between commandlets and functions are partly academic from a user point of view, there will be no differentiation at this point.

A commandlet usually consists of three parts:

  1. A verb

  2. A noun ...

Get Essential PowerShell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.