Check Default PowerShell Module Paths

by Jun 10, 2016

Sometimes, PowerShell modules ship as MSI packages. When they do, you never know what the installation logic does to your system. Unfortunately, there are module authors who replace rather than add paths to the list of default PowerShell module paths. When this occurs, the module list may no longer contain the default module path for personal modules, and modules stored in the CurrentUser scope fail to load.

Just check and make sure your default module paths don't miss these important paths:

 
PS> $env:PSModulePath -split ';'
C:\Users\[YOURUSERNAME]\Documents\WindowsPowerShell\Modules
C:\Program Files\WindowsPowerShell\Modules
C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\
 

There can be more paths, but the paths shown should always be present.

Twitter This Tip! ReTweet this Tip!