Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #60 from sethvs/userPSModulePath
Browse files Browse the repository at this point in the history
Add User PSModulePath environment variable to Add-WindowsPSModulePath function.
  • Loading branch information
Bruce Payette authored Nov 13, 2018
2 parents 4c65936 + 18e049d commit 423712e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions WindowsCompatibility/WindowsCompatibility.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,8 @@ function Add-WindowsPSModulePath
"${Env:UserProfile}\Documents\WindowsPowerShell\Modules"
"${Env:ProgramFiles}\WindowsPowerShell\Modules"
"${Env:WinDir}\system32\WindowsPowerShell\v1.0\Modules"
[System.Environment]::GetEnvironmentVariable('PSModulePath',
[System.EnvironmentVariableTarget]::User) -split [System.IO.Path]::PathSeparator
[System.Environment]::GetEnvironmentVariable('PSModulePath',
[System.EnvironmentVariableTarget]::Machine) -split [System.IO.Path]::PathSeparator
)
Expand Down

0 comments on commit 423712e

Please sign in to comment.