how to install PowerShell modules w/o admin privilegess.

Josh Fox 0 Reputation points
2023-09-30T09:11:49.3+00:00

Install-Package: Administrator rights are required to install or update. Log on to the computer with an account that has Administrator

rights, and then try again, or install by adding "-Scope CurrentUser" to your command. You can also try running the

Windows PowerShell session with elevated rights (Run as Administrator).

I get this error when I try to install modules on my windows desktop. I get it even if I'm running PowerShell as Administrator. It gives me the error if I use the -Scope like it recommends. I do have Hyper-V turned on so I can run VM natively without needing VMware or VirtualBox. Any help would be appreciated.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,940 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 35,816 Reputation points
    2023-09-30T12:42:25.5966667+00:00

    I get this error when I try to install modules

    What are you trying to install?

    Have you tried using Install-Module?

    https://learn.microsoft.com/en-us/powershell/module/powershellget/install-module?view=powershellget-2.x

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.