Use the Get-command PowerShell cmdlets to Find Parameter Set information

Source: Internet
Author: User

Reference Articles : https://blogs.technet.microsoft.com/heyscriptingguy/2012/05/16/ use-the-get-command-powershell-cmdlet-to-find-parameter-set-information/


We know that get-process can get the process of a computer, and each process is an object. Since it is an object, it has properties and methods;

get-process | Get-member can obtain properties and methods that are specific to the object.

As shown in the following:

650) this.width=650; "title=" 11.png "alt=" Wkiol1baa8fx-byjaad_vmnubxi409.png "src=" http://s5.51cto.com/wyfs02/M02/ 7a/da/wkiol1baa8fx-byjaad_vmnubxi409.png "/>


We select some of these properties for viewing, such as

650) this.width=650; "title=" 22.png "alt=" Wkiol1babjst3rueaacfh72ivy0113.png "src=" http://s2.51cto.com/wyfs02/M00/ 7a/da/wkiol1babjst3rueaacfh72ivy0113.png "/>


since each process acquired by Get-process is an object, they have properties and methods, so does the get-process command itself have properties and methods? The answer is yes, we need to use Get-command get-process | Get-member to get the properties and methods that the command itself has, such as

650) this.width=650; "title=" 33.png "alt=" Wkiom1baba-wxfsbaad9udekequ532.png "src=" http://s1.51cto.com/wyfs02/M00/ 7a/da/wkiom1baba-wxfsbaad9udekequ532.png "/>

We look at the information that corresponds to each property of the command itself, such as

650) this.width=650; "title=" 44.png "alt=" Wkiol1babr6sew80aaeattysncm247.png "src=" http://s3.51cto.com/wyfs02/M01/ 7a/da/wkiol1babr6sew80aaeattysncm247.png "/>

Let's look at the definition of this property, which has a lot of parameter information

650) this.width=650; "title=" 55.png "alt=" Wkiom1bacl-hby_laac44huxh04467.png "src=" http://s2.51cto.com/wyfs02/M02/ 7a/da/wkiom1bacl-hby_laac44huxh04467.png "/>


If, now I want to know what the command with the "Module" parameter is in PowerShell for all of the commands, then we can enter the following information

650) this.width=650; "title=" 66.png "alt=" Wkiol1badgbrtmp2aacdelnknwc493.png "src=" http://s2.51cto.com/wyfs02/M00/ 7a/da/wkiol1badgbrtmp2aacdelnknwc493.png "/>


Use the Get-command PowerShell cmdlets to Find Parameter Set information

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.