Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Get-Package -Scope CurrentUser" returns packages in AllUsers/ system context #499

Open
o-l-a-v opened this issue Feb 19, 2021 · 0 comments

Comments

@o-l-a-v
Copy link

o-l-a-v commented Feb 19, 2021

Get-Package -Name '' -Scope 'CurrentUser' returns a package installed in system context/ for all users.
Yes, technically %ProgramW6432%\WindowsPowerShell\Modules can be read by users without admin permissions, but the package itself is not installed in user context per se, which by default for PowerShell modules is %USERPROFILE%\Documents\WindowsPowerShell\Modules.

This is using PackageManagement v1.4.7 on Windows PowerShell in PowerShell ISE.

Also created a documentation issue, because the parameter does not act as described.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant