December 12th, 2014

PowerTip: Find PowerShell Cmdlets Supplied by Module

Doctor Scripto
Scripter

Summary: Find Windows PowerShell cmdlets that are supplied by a specific module.

Hey, Scripting Guy! Question How can I easily see all the cmdlets that ship with the Hyper-V module.?

Hey, Scripting Guy! Answer Use the Get-Command cmdlet, and specify the Hyper-V module.
(Tab expansion works for module names, which is great because who can remember if Hyper-V has a hyphen?)

Get-Command -Module Hyper-V

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.