What is Cmdlet? What is the difference between Cmdlets and PowerShell commands?
When working with Windows PowerShell, you may have come across the term cmdlet and find it a bit confusing. What is Cmdlet? Is it completely different from a command in PowerShell or is it simply another name? Join TipsMake.com to find the answer in the following article!
What is Cmdlet?
The cmdlet (pronounced "command-let") is a lightweight Windows PowerShell script that performs a function.
A command, in this context, is the specific order from the user to the computer operating system or an application to perform a service, such as displaying all files or running programs.
Although Windows PowerShell includes over 200 basic short cmdlets, admins can also write their own cmdlets and share them.
Cmdlet has the extension .ps1 . Each cmdlet has a help file, which can be accessed by typing:
Get-Help -Detailed
Detailed view of the cmdlet help file including description of cmdlet, command syntax, description of parameters and an example illustrating the use of cmdlet.

Common basic cmdlets
Common basic cmdlets include:
Cmdlet
Function
Get-Location
Select the current directory
Set-Location
Change the current directory
Copy-Item
Copy the file
Remove-Item
Remove a file or directory
Move-Item
Move a file
Rename-Item
Rename the file
New-Item
Create a new empty file or folder
Cmdlet is different from the usual commands?
Cmdlet differs from commands in other command-shell environment as follows:
- Cmdlets are examples of .NET Framework classes and are not standalone executables.
- Cmdlet can be made from several dozen lines of code.
- Cmdlets usually do not themselves parse, present errors or format the output. The parsing, error presentation and output format are handled by Windows PowerShell Runtime.
- Cmdlets handle input objects from the pipeline (data flow moving through cmdlets) instead of from text streams, and cmdlets usually distribute objects as outputs to the pipeline.
- Cmdlet handles one object at a time.
You should read it
- How to use PowerShell's default parameter to change the command behavior
- Check mail in Exchange 2007
- 10 tips with PowerShell in Windows Server 2008 - Part 2
- How to install PowerShell 7.0 in Windows 10/8/7
- Statistics mailbox in Exchange 2007
- Microsoft Windows PowerShell and SQL Server 2005 SMO - Part 3
- Managing Resource Mailboxes in Exchange Server 2007 (Part 2)
- Mailbox Exchange 2007 SP1 management features
May be interested
- Microsoft Windows PowerShell and SQL Server 2005 SMO - Part 5part i and part ii of this series showed you how to install powershell and simple smo and wmi cmdlets. in part iii, i showed you how to script powershell and connect to sql server. in part iv, i will show you how to use the powershell script to loop through the contents of the file and connect it
- Microsoft Windows PowerShell and SQL Server 2005 SMO - Part 2part i of this series shows how to set up and use simple powershell and smo commands. in part ii we will learn more about powershell as well as its features associated with smo. if you do & ati
- Summary of commands in PowerShellsummary of commands in powershell. powershell has loads of different commands you can use, of course we don't need to know them all. but some of the commands are useful and used a lot, you should know through v
- How to install PowerShell 7.0 in Windows 10/8/7powershell 7 is the latest major update for powershell. powershell includes command line shells, object-oriented programming languages, along with a set of tools for script / cmdlet execution and module management.
- How to create and run a PowerShell script file on Windows 10a script is a collection of commands stored in a text file (using the special extension .ps1) that powershell understands and executes step by step to trigger a variety of operations.
- Install Windows Server Backup on Windows Server 2008 R2windows server backup is a component built into windows server 2008 r2, including snap-in microsoft management console (mmc), a command line tool and windows powershell cmdlets.
- 10 useful basic PowerShell commands for Windowsover the past few years, microsoft has tried to turn powershell into one of the comprehensive management tools for windows.
- How to add the Open Powershell Here option to the context menu on Windowsto open and use powershell faster and simpler when needed, you can add the 'open powershell here' option to the context menu - the menu when you right-click. in the following article, network administrator will show you how to add the 'open powershell here' option to the context menu on the windows operating system.
- Server administration in Exchange 2007 using Powershellin this article, i will show you the database and the problem of managing storage groups using the commands in powershell.
- Microsoft Windows Power Shell and SQL Server 2005 SMO - Part 4part i and part ii of this series showed simple power shell settings, smo and wmi cmdlets. part iii instructs writing powershell and connecting to sql server. part 4 will show you how to use powershell code to iterate file content and connect to other servers.