This repository was archived by the owner on Jun 13, 2024. It is now read-only.
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
[PowerShell] - Make Install-Module automatically install in CurrentUser scope for non admin users #2
Closed
Description
As per issue PowerShell/PowerShell#2292 - Reported by @ffeldhaus - moving this here as the home for PowerShellGet module for possible further discussion.
This is a feature request. Currently Install-Module gives a warning in Windows PowerShell if it is not run with admin privileges and -Scope CurrentUser is not specified.
As many users just expect Install-Module to work and as the ability to install Modules in the current users scope is one of the key advantages of PowerShell, it would be a great enhancement if the default behaviour of Install-Module would be to automatically install the Module in the current user scope if it is run with non admin privileges.