Monthly Archive

Categories

Install-Module in PowerShell v6.2 RC 1

Further to my last post it appears that Install-Module in PowerShell v6.2 RC1 DOESN’T follow the rules. In an elevated session if the scope parameter ISN’T used it will install to $home\Documents\PowerShell\Modules

 

The default appears to be CurrentUser regardless.

 

You have to use -Scope AllUsers if you want it to install in C:\Program Files\PowerShell\Modules

Comments are closed.