Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Find Module Information from Cmdlet

$
0
0

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}


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>