PowerShell Big Impression Series 2: Rich help, rich resources

Source: Internet
Author: User

Wrote the first essay on PowerShell, it feels good. But the opening is just a brief introduction to the PowerShell of the powerful, but has not been very in-depth. Until this article, of course, do not want to go too deep. I'd like to share some resources and skills with you guys. I hope you do not mind Oh ~ After the series 2 will be a problem (say some PowerShell inside not accustomed to the place, that is, tips), 3 will say a bit more in-depth dongdong, now has not thought.

A wealth of help

Well, now I'd like to strongly recommend a PowerShell great help system. Get PowerShell help can be found below, find books, Google, but its internal also has very strong help. Traditionally, the help to get command-line instructions is nothing more than get-process-?. But when you use it--? , you can find that he will remind you to get details, you can use Get-help get-process-full, input the above instructions, a press RETURN, the screen immediately flew countless English letters, it is very cool. See Help can focus on a few parts,

1. Is the bottom of the samples, there are examples of people who have studied programming of course, see how to use.

2. PARAMETERS, refers to the parameters, or the attributes of the instruction (property), which has this attribute is what, there are the following

Required? False (if you have to, if you do not have the "must" when you use the instructions, it doesn't matter, I will briefly explain later)

Position? 1 (location, that is, do not fill in the attribute name, can also pass parameters according to position.) such as get-process winword. Without the need for get-process-name Winword

Default value Null (defaults)

Accept pipeline input? True (Bypropertyname) (refers to whether the pipeline is supported, and there are two types of support for pipelines, one is bypropertyname, and the other is Byvalue.). What is the difference, specific look after the big Impression Series 3, FAQ.

3. Then look at the contents of the notice. Get.

Another kind of help is for the promiscuous person to use, experienced programming people, like to guess. For example, you do not add any parameters, direct input get-content. What's the result? The display is as follows:

Cmdlet get-content at command pipeline position 1

Supply values for the following parameters:

PATH[0]:

This is one of the uses of that required, and there is that which must be entered. Without input, it will also remind you to input, and sometimes even in this case, with '!? ' To get deeper help.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.