February 2019
Intermediate to advanced
626 pages
15h 51m
English
The Add-WindowsPSModulePath command adds the default Windows PowerShell module paths and the content of the machine level PSModulePath variable, to the end of the $env:PSModulePath variable.
For example, before the command is run, $env:PSModulePath may be set to the following:
C:\Users\whoami\Documents\PowerShell\ModulesC:\Program Files\PowerShell\Modulesc:\program files\powershell\6-preview\ModulesC:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
After the command has run, $env:PSModulePath will have the following added. These values are hardcoded:
${env:userprofile}\Documents\WindowsPowerShell\Module${env:programfiles}\WindowsPowerShell\Modules
In addition to these, any paths present in the environment variable ...
Read now
Unlock full access