June 6th, 2015

PowerTip: Find Which PowerShell Cmdlets Contain Specific Parameter

Doctor Scripto
Scripter

Summary: Find which Windows PowerShell cmdlets contain a specific parameter.

Hey, Scripting Guy! Question How can I find which cmdlets contain the –Force parameter?

Hey, Scripting Guy! Answer Use the Get-Command cmdlet and specify the parameter name, for example:

Get-Command -ParameterName force

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