Quick Tip: Install PowerShell Modules as a Normal User

Quite often I still see people struggling with installing various PowerShell modules, which by default would require local admin privileges on the machine they’re working on. This results in an error like the one below:

The error message already tells you what to do, but I guess it’s often not actually read. You can install modules into the “Current User” scope, which does not require any local admin privileges. You can do so by adding -Scope CurrentUser to the Install-Module cmdlet.

There can still be very good reasons to install modules as the local admin though:

  • Preventing changes to the installed module
  • Systems where multiple users sign in and they all need to use the same predictable version