PowerShell is King – Using OneGet Package Manager on Windows Server Technical Preview build 9841

Let’s get Chocolatey! First heard about this via Keith Garner, but this guide from Mike is not to be missed. Finally there is a global silent software installer that’s command line driven! Brilliant! Do not pass this read up!

The Deployment Bunny

PowerShell is great and with the “new” OneGet it get awesome. OneGet is a part of PowerShell v5 and it is a generic package manager. OneGet can get items from a repository, for example from Chocolatey (https://chocolatey.org/) Instead of spending a massive amount of time to explain how it works inside, lets just start playing with it. There is a couple of things you need to do to make OneGet to work with Chocolatey in build 9841.

Lets Install Zoomit, WinRAR and Notepad++!

Step 1 – Install the Chocolatey provider

Execute the following in an elevated PowerShell prompt:

#Setup the Webclient
$webclient = New-Object System.Net.WebClient

#DL and install Chocolatey
Invoke-Expression (($webclient).DownloadString(‘https://chocolatey.org/install.ps1’))

image

Step 2 – Download the updated and modified OneGet PowerShell Module

Execute the following in an elevated PowerShell prompt:

#DL and unzip the latest OneGet
$ZipFile = ‘C:OneGet.Zip’
$webclient.DownloadFile(‘
http://oneget.org/oneget.zip’,$ZipFile)

image

After download, unzip the zip folder…

View original post 102 more words

Advertisements