Displaying Path Environment Variables

by Dec 17, 2013

The environment variable $env:Path lists all paths that are included in the Windows search path when you launch an application. Likewise, $env:PSModulePath lists all paths PowerShell searches for PowerShell modules (and includes in its module auto-loading).

These variables contain semicolon-separated information. Use the operator -split to view the paths separately:

The third entry (in Program Files) was added by PowerShell 4.0 by the way.

Twitter This Tip! ReTweet this Tip!