August 24th, 2015

PowerTip: Find Path to PowerShell Module

Doctor Scripto
Scripter

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

Hey, Scripting Guy! Question How can I easily find the location where a Windows PowerShell module is installed?

Hey, Scripting Guy! Answer Use the Path property from the PSModuleInfo object that returns from the Get-Module cmdlet, for example:

(Get-Module Microsoft.PowerShell.Utility).path

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.