Getting Help and Finding Commands Part 2
- Remember that I told you earlier that a verb shows action. Let's take a look at our verbs. Go ahead and type get-verb and press return. OK let's go ahead and scroll up. Notice at the list of verbs is divided into several groups. I'm not going to define the meaning of each group. You can check out the documentation for that. I just wanted you to know that the verbs are subdivided into functional groups.
-
Here's something new. Remember I said that the pipeline allows you to combine commands by taking the output of one command and using that as the input of another command. What we're going to do is we're going to type two commands and join them together with a pipe operator.
-
Let's go ahead and type get-verb , space now press your shift key press the key right above the Enter Key. That's our pipe operator. ok, space. Now, type measure-object , and press return. Now go ahead and press return again.
-
Okay so what's happened here is we took the output of get-verb and ran it through the pipeline to the input of the measure-object command the measure object command counted the commands and we got the output of 98.
- I want to show you something really awesome. From the command pane, type get-com for get-command. Press Enter Now check this out. Displayed on a screen is over fifteen hundred commands. So what we need to do is we need to get help on these commands. Let's say let's just pick one get-event. How can I get help on this the easiest possible way. Check this out with the cursor right by the command, press the F1 key. OK, get-window comes up with a description of the command with the parameters. Now let's go ahead and scroll down and check this out. This is our examples that we'll never need to learn how to run this command. Let's go to another one, go to another command let's Stop-Computer OK yeah. Now press F1 and show-window comes up again. Okay. There's our description. There's our par…
No comments yet. Add the first comment to start the discussion.