Posts

Showing posts with the label Cmdlets

DAY-3: Running PowerShell Cmdlets

Image
PowerShell: Running Commands Powershell, as its name implies, is a shell. It's similar to Cmd.exe command line that you probably used previously. It also has a strong resemblance to the Unix shells, like Bash or even original Unix Bourne shell. Only the difference come with PowerShell commands with all the other shells is that PowerShell has a unique Anatomy of the Cmdlets structure, which is missing in other shells.This structure is very easy to understand and make use while running Cmdlets. Now I will make you understand the anatomy of the Cmdlets in PowerShell. The Anatomy of PowerShell Command The figure shows the basic anatomy of a complex PowerShell command. I have tried to use a complex command so that you can all of the different things that might show up. Now we will tell you all few rules for writing PowerShell commands. 1. Cmdlets Naming Convention - Microsoft has established a naming convention for Cmdlets. The rule is this: Names start with a...