July 25th, 2014

PowerTip: List All Parameters for a Cmdlet

Doctor Scripto
Scripter

Summary: Learn to provide a parameter list for a cmdlet in a viewable table.

Hey, Scripting Guy! Question I am trying to work with cmdlets with so many parameters that I am having a hard time reading them in Get-Help.
           Is there a way to list them in a single table?

Hey, Scripting Guy! Answer Access the Parameters property by using Get-Command and the cmdlet name, for example:

(GET-Command GET-Childitem).parameters

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.

Feedback