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
From the course: Learning PowerShell for Windows Server Administration
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
(Locked)
New features in PowerShell version 72m 55s
-
(Locked)
Upgrading Windows PowerShell3m 37s
-
(Locked)
Managing Windows Servers using Windows Admin Center and PowerShell3m 49s
-
Customizing a PowerShell session7m 55s
-
(Locked)
PowerShell cmdlet syntax3m 12s
-
(Locked)
Help in PowerShell5m 24s
-
(Locked)
Challenge: Getting started2m 16s
-
(Locked)
Solution: Getting started7m 52s
-
(Locked)
-
-
-