October 12th, 2012

PowerTip: Search Help Files in PowerShell

Doctor Scripto
Scripter

Summary: Use the Category parameter to assist in searching Help files in Windows PowerShell.

Hey, Scripting Guy! Question How can you search the about* Help files in Windows PowerShell for a specific topic?

Hey, Scripting Guy! Answer Specify HelpFile for the Category parameter, and use a wild card for the value of the Name parameter.
The following example returns all the about* Help files that contain the letters “power” in the name.

Get-help -Name *power* -Category helpfile

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