how to install PowerShell modules w/o admin privilegess.

Josh Fox 0 Reputation points

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.

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

1 answer

Sort by: Most helpful
  1. MotoX80 32,246 Reputation points

    I get this error when I try to install modules

    What are you trying to install?

    Have you tried using Install-Module?

    0 comments No comments