Windows PowerShell
Revision as of 12:44, 5 February 2016 by Psmay (talk | contribs) (→PowerShell Community Extensions (pscx))
PSModulePath
PowerShell's search path for the Import-Module command is in the PSModulePath
env var:
echo $env:PSModulePath
By default on one system it seems to be
- a user modules dir at
My Documents\WindowsPowerShell\Modules
- a global modules dir at
system32\WindowsPowerShell\v1.0\Modules\
PowerShell Community Extensions (pscx)
Get it from http://pscx.codeplex.com/. The directory structure in the ZIP file needs to be such that the path to Pscx.psm1
is
Modules/Pscx/Pscx.psm1
where Modules is one of the directories in $env:PSModulePath
.