{"id":73771,"date":"2015-08-24T11:59:00","date_gmt":"2015-08-24T11:59:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2015\/08\/24\/powertip-find-path-to-powershell-module\/"},"modified":"2019-02-18T09:35:29","modified_gmt":"2019-02-18T16:35:29","slug":"powertip-find-path-to-powershell-module","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-find-path-to-powershell-module\/","title":{"rendered":"PowerTip: Find Path to PowerShell Module"},"content":{"rendered":"<p><b>Summary<\/b>: Easily find the path to a Windows PowerShell module.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Question\" \/>&nbsp;How can I easily find the location where a Windows PowerShell module is installed?<\/p>\n<p style=\"margin-left:30px\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Answer\" \/>&nbsp;Use the&nbsp;<b>Path<\/b>&nbsp;property from the&nbsp;<b>PSModuleInfo<\/b>&nbsp;object that returns from the&nbsp;<b>Get-Module<\/b>&nbsp;cmdlet, for example:<\/p>\n<p style=\"margin-left:120px\">(Get-Module Microsoft.PowerShell.Utility).path<\/p>\n<p style=\"margin-left:30px\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/7610.Dr.ScriptoForTips.jpg\" alt=\" \" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Easily find the path to a Windows PowerShell module. &nbsp;How can I easily find the location where a Windows PowerShell module is installed? &nbsp;Use the&nbsp;Path&nbsp;property from the&nbsp;PSModuleInfo&nbsp;object that returns from the&nbsp;Get-Module&nbsp;cmdlet, for example: (Get-Module Microsoft.PowerShell.Utility).path<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[356,3,45],"class_list":["post-73771","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-powertip","tag-scripting-guy","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Easily find the path to a Windows PowerShell module. &nbsp;How can I easily find the location where a Windows PowerShell module is installed? &nbsp;Use the&nbsp;Path&nbsp;property from the&nbsp;PSModuleInfo&nbsp;object that returns from the&nbsp;Get-Module&nbsp;cmdlet, for example: (Get-Module Microsoft.PowerShell.Utility).path<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/73771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=73771"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/73771\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=73771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=73771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=73771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}