Skip to content

Powershell 7 not installing modules into correct module path? #21272

Closed Answered by rhubarb-geek-nz
mcdonamw asked this question in Q&A
Discussion options

You must be logged in to vote

If you look at PSModulePath, that might help

PS> $env:PSModulePath
D:\OneDrive\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\powershell\7\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
path comment
D:\OneDrive\Documents\PowerShell\Modules powershell core modules installed in user scope
C:\Program Files\PowerShell\Modules powershell core modules installled system wide
c:\program files\powershell\7\Modules prepackaged modules that came in the original PowerShell core MSI installation
C:\Program Files\WindowsPowerShell\Modules Windows PowerShell modules, for PowerShell 5.1
C:\WINDOWS\sy…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kilasuit
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Resolution-Answered The question is answered.
3 participants