Getting Help and Finding Commands Part 1
- One of the GREATEST BENEFITS for those that are brand new to PowerShell is the help system. The Help System is where you’ll get all your answers. Why count on google, when you have something better right at your fingertips.
You might ask, why should I spend time learning about the help system?
- If you’re serious about learning PowerShell, you’ll need to be serious about spending time mastering the help system. We gonna be spending a lot of time using the help system, why? Because it’s the **secret **to becoming a PowerShell Expert.
- Commands vs. cmdlets vs. Functions. PowerShell has many types of commands. We ’ll refer to all these as commands. We’ll define what a cmdlet is and talk about functions later.
- CMDlets- Are **unique **to PowerShell. These commands allow you to get a specific task done. Cmdlet’s take the form of a VERB-NOUN. As you know a **verb **denotes an action. For example , Get, Add, Export, and Import.
Let’s take the command Get-Service , get is the **verb **and service is the noun.
Or the command Export-Csv – Export is the verb, and CSV is the noun.
The Verb-Noun format gives these commands some consistency , in other words, you’ll always know that any cmdlet will start with a verb and end with a noun.
**There are Four different ways to examine the help system **– examples, detailed, full and online. Lets go ahead and checkout all four. We’ll use get-help get-service as our command.
- OK go ahead and type get-help and press return, space. Get-service, okay and press return. Now press the spacebar once, press the hyphen key and type examples , ex. Then press return. OK press return again. And let's go ahead and scroll up. And as you can see we have example one, okay and scroll the whole way down. And here we have example 11. So as you can see we have 11 examples for get-service. And this really makes learning Powe…
No comments yet. Add the first comment to start the discussion.