October 13th, 2012

PowerTip: Find Commands from a PowerShell Module

Doctor Scripto
Scripter

Summary: Learn how to find specific types of commands from a Windows PowerShell module.

Hey, Scripting Guy! Question How can you list only cmdlets from a module that make new stuff?

Hey, Scripting Guy! Answer Use the Get-Command cmdlet with the Module parameter, and specify the New verb (gcm is an alias for Get-Command):

gcm -Module hyper* -Verb new

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.