
After installing Chocolatey we get the list of packages we want to install and just loop through the list installing each one in order. The script below is pretty straightforward.

The install for Chocolatey is just a PowerShell script that you can download from their site. I said that this was lightweight and I meant it. The package names were all retrieved from the gallery. There are very few things I need to manage separately.įor this example, I’m using a text file with a list of packages to install. It is searchable and I’ve been pleasantly surprised how many of the tools I use are out there and maintained by the community. While you can create your own repository, for our purposes we will be using the community package repository provided by Chocolatey. Packages are stored in a package repository that Chocolatey pulls from to run the install. In this article, we’ll take a look at a simple PowerShell script I use to set up Chocolatey and install a given set of packages.Ĭhocolatey uses the concept of packages, similar to Nuget or PowerShell modules if you’re familiar with either of those. This is a very lightweight way to automate the installation and configuration of software on a Windows machine. Recently I discovered Chocolatey, an open-source package manager for Windows. With all the various tools and things we have at our disposal these days, that can become very time-consuming.

In many cases, customers prefer that we use a jump box or even a physical machine on their network/domain to access their servers. One of the things I end up having to do quite often is set up a Windows workstation for my daily use.
