February 2019
Intermediate to advanced
626 pages
15h 51m
English
In PowerShell Core, PSModulePath is hardcoded and has the following values:
PS> $env:PSModulePath -split ';'C:\Users\whoami\Documents\PowerShell\ModulesC:\Program Files\PowerShell\Modulesc:\program files\powershell\6\ModulesC:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
PowerShell Core disregards the environment variables set for the user or machine. The value may only be overridden by making changes after PowerShell Core has started, for example, by implementing a profile script that explicitly sets a new value for $env:PSModulePath.
The C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules path is included in the list shown in the previous snippet. PowerShell Core performs additional filtering on the content ...
Read now
Unlock full access