Easily install useful PowerShell modules from the Internet with PsGet

Posted: (EET/GMT+2)

 

Before the PowerShell Gallery was built, there was PsGet. It is a small PowerShell module that made it easy to discover and install other modules straight from the interwebs. It's still handy on older Windows and PowerShell versions that don't have Install-Module.

To install PsGet, run this in an elevated PowerShell prompt:

(New-Object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex

After that, you can install modules with a single command:

Install-Module Posh-Git
Install-Module PSReadLine

PsGet downloads the module into your user profile's Modules folder, so it loads automatically on the next PowerShell start. You can list all installed modules with the command Get-Module -ListAvailable.

Tip: if you're running PowerShell 5.0 or later, use Install-Module from the official PowerShell Gallery instead: same idea, just a newer implementation. PsGet was simply the first step toward this model.