November 11th, 2012

PowerTip: Find PowerShell Cmdlets that Support the PassThru Parameter

Doctor Scripto
Scripter

Summary: Learn how to find required parameters by using the Windows PowerShell Get-Command cmdlet in Windows PowerShell 3.0.

Hey, Scripting Guy! Question  How can I find cmdlets in Windows PowerShell 3.0 that support the PassThru parameter?

                     Hey, Scripting Guy! Answer Use the ParameterName parameter from the Get-Command cmdlet, as shown here.

                                       Get-Command -ParameterName PassThru

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.