November 29th, 2014

PowerTip: Find Module Information from Cmdlet

Doctor Scripto
Scripter

Summary: Find Windows PowerShell module information from a cmdlet.

Hey, Scripting Guy! Question How can I find more information about the module that provides a Windows PowerShell cmdlet?

Hey, Scripting Guy! Answer Use the Get-Command cmdlet, pipe the results to the Foreach-Object cmdlet, then inside the script block,
           use Get-Module. Here is an example using the Get-Process cmdlet:

Get-Command get-process | foreach {Get-Module -name $_.modulename}

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