Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 36188

PowerTip: Find the Path to a PowerShell Module

$
0
0

Summary: Easily find the path to a Windows PowerShell module.

Hey, Scripting Guy! Question How can I easily find the path to a Windows PowerShell module?

Hey, Scripting Guy! Answer Use the Get-Module cmdlet and a wildcard character for the name, and select the Path property.
          The following script finds the PowerShellISEModule (an optional module in the Script Repository):

(Get-Module -ListAvailable PowerShellIse*).path

You can shorten the command:

(gmo -l PowerShellIse*).path


Viewing all articles
Browse latest Browse all 36188

Trending Articles



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