From the course: Learning PowerShell for Windows Server Administration

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

PowerShell cmdlet syntax

PowerShell cmdlet syntax

- [Instructor] There are PowerShell cmdlet types that require a certain type of syntax. For instance, a PowerShell command is called a cmdlet, and the syntax for this is verb-noun. For instance, get-disc, get is the verb, the noun is disc. Now, you can also create what's called aliases. So let's say that you are used to using certain command line commands when you open up the old fashioned command line instead of using PowerShell, but you'd like to still be able to use those commands. Well, the good news is there's a whole lot of different aliases for commands inside PowerShell. So if you'd like to type D-I-R for a directory, that still works because there's an alias for dir within PowerShell that is then linked to the PowerShell equivalent cmdlet. And you can even type a command, which I'll be showing you shortly, how to take a look at the aliases within PowerShell. Functions, this is a really great time-saver. It simplifies scripts with repeating code. So if you have something that…

Contents