January 7th, 2013

PowerTip: Find Parameter-Specific Help Information

Doctor Scripto
Scripter

Summary:  In Windows PowerShell 3.0, see how to find detailed Help information for a specific Windows PowerShell parameter.

Hey, Scripting Guy! Question How do I find detailed Help information for a specific parameter of a Windows PowerShell cmdlet?

Hey, Scripting Guy! Answer Use the –Parameter parameter and specify the parameter name. An example of this is shown here.

17:11 C:\> help New-Partition -Parameter size

 -Size <UInt64>

    Specifies the size of the partition to create.  If not specified, then the units

    will default to bytes. The acceptable value for this parameter is a positive

    number followed by the one of the following unit values: Bytes, KB, MB, GB, or

    TB.

     Required?                    false

    Position?                    named

    Default value

    Accept pipeline input?       false

    Accept wildcard characters?  false

 

 

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.