PowerTip: Find Module Information from Cmdlet


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}

Comments (0)

Skip to main content