PowerTip: Find Module Path with Windows PowerShell

The Scripting Guys

Dr Scripto

Summary: Use Windows PowerShell to determine the location of a module.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find the location of a module that I am using from a vendor?

Hey, Scripting Guy! Answer Use the Path property of the module with Split-Path to show the parent:

$ModuleName=(Get-Module –module DeployImage)

$ModulePath=Split-Path $ModuleName

The Scripting Guys
Dr Scripto

Follow Dr Scripto   

No Comments.