Quick Win – Install PowerShell Package Management on systems running PowerShell v3 / v4

This is a very very quick post about the latest feature being made available downlevel from Powershell v5.

As Microsoft have released PackageManagement (formally OneGet) that is now available for PowerShell v3 & v4 as detailed in this link http://blogs.msdn.com/b/powershell/archive/2015/10/09/package-management-preview-for-powershell-4-amp-3-is-now-available.aspx

That’s right the ability to pull directly from the PowerShell Gallery but you need to install the Package Management release which I’ve Scripted for you here.

And what better way than a simple 1 liner to grab and run the script

Invoke-Expression (New-Object Net.WebClient).DownloadString(‘http://bit.ly/PSPackManInstaller')

And if you want to look at the Script then direct link is http://bit.ly/PSPackManInstaller - this takes you to the RAW version of the file on Github so will not download or execute - but will allow you to read it

Hope this is useful for you

PS credit goes to @lee_holmes for the idea from following tweet

Comments : 0

Comments for this post yet are either not opened yet or it has been decided not to have any for this post or something is up with how we are trying to display them. If you think there should be comments on this post please let our webmaster know. Otherwise, please try again later!