March 6th, 2013

PowerTip: Use PowerShell to Find Commands from Imported Modules

Doctor Scripto
Scripter

Summary: Learn how to use Windows PowerShell to find commands from imported modules.

Hey, Scripting Guy! Question How can I use the Get-Command cmdlet to list commands that support a specific verb, but suppress the auto module import feature of Windows PowerShell 3.0?

Hey, Scripting Guy! Answer Use the –ListImported parameter with the Get-Command cmdlet (gcm is an alias for Get-Command):

gcm -Verb get -ListImported 

 

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.