PowerShell: What is Cmdlet

By Xah Lee. Date: . Last updated: .

In PowerShell, the command you type are technically of different kinds: cmdlets, alias, function, and other independent programs such as explorer, tree. All are called commands.

The commands like Get-ChildItem (where dir is alias of), Set-Location (where cd is alias of), are called cmdlets.

cmdlets are written based on the .NET framework. They follow a specific naming convention, parameter syntax, behavior. They made up the heart of PowerShell.

help about_Core_Commands
Show core commands.

Here's a list of core commands:

ChildItem cmdlets

Content cmdlets

Item cmdlets

ItemProperty cmdlets

Path cmdlets

PSDrive cmdlets

PSProvider cmdlets




Script Examples