PSModulePath

noun

say it: “PEE-ES MOD-yool path” /ˌpiˈɛs ˈmɑdʒul pæθ/

The PowerShell setting that lists the folders where it looks for modules.

What is PSModulePath?

$env:PSModulePath lists the folders PowerShell searches for modules. Put a module's folder in one of them, usually your own Documents\PowerShell\Modules, and PowerShell finds it by name from anywhere.

$env:PSModulePath -split ';'
# C:\Users\Sam\Documents\PowerShell\Modules
# C:\Program Files\PowerShell\Modules
# ...

In a sentence

  • “A module outside every PSModulePath folder has to be imported by its path.”
  • “Sam copied the module into the first folder on PSModulePath.”

Level: Journeyman · More PowerShell terms at this level

Updated