liveBook · Manning

PSModulePath environment variable

The PSModulePath environment variable specifies the filesystem directories that PowerShell searches for modules.

How 2 Manning books explain it

Practical Automation with PowerShell: Effective scripting from the console to the cloud

PSModulePath is the PowerShell environment variable containing folders in which PowerShell searches for modules.

How it is used
Enables shared custom modules to be discovered and imported by name after installation.
How deep it goes
Explains module discovery and a symbolic-link installation workflow, while deferring platform-specific package-manager choices to the environment.
Examples
Demonstrates a Git-cloned shared repository linked into a PowerShell module-path folder by an installation script.
What you can do after
Operate/configure shared module installation by linking a cloned repository into a PSModulePath folder.

Read how Practical Automation with PowerShell: Effective scripting from the console to the cloud explains PSModulePath environment variable →

Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools

The PSModulePath environment variable contains the directories that PowerShell searches for modules.

How it is used
Guides module placement and automatic discovery during script-module development.
How deep it goes
Defines path inspection, default locations, and naming requirements, but does not detail environment-variable customization.
Examples
Uses $env:PSModulePath -split ";" and contrasts Documents with Program Files module locations.
What you can do after
Operate/configure it to verify searchable directories and place modules where PowerShell can discover them.

Read how Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools explains PSModulePath environment variable →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.