Chocolatey – vZilla https://vzilla.co.uk One Step into Kubernetes and Cloud Native at a time, not forgetting the world before Tue, 09 Oct 2018 12:50:46 +0000 en-GB hourly 1 https://wordpress.org/?v=6.8.1 https://vzilla.co.uk/wp-content/uploads/2018/01/cropped-profile_picture_symbol-32x32.png Chocolatey – vZilla https://vzilla.co.uk 32 32 Windows Operations and Using Chocolatey for Windows Package Management With Veeam Agent https://vzilla.co.uk/vzilla-blog/windowsoperationsusingchocolateyforveeamdeployment https://vzilla.co.uk/vzilla-blog/windowsoperationsusingchocolateyforveeamdeployment#respond Tue, 09 Oct 2018 12:46:35 +0000 https://vzilla.co.uk/?p=1282 I wanted to follow on from my introduction and how to post regarding Chocolatey as a windows package manager and introduce a package that was authored by the community,

I want to give a personal shout out to the authors of this package.

Ericjaystevens – https://chocolatey.org/profiles/ericjaystevens

Sbaerlocher – https://chocolatey.org/profiles/sbaerlocher Simon can also be found on twitter at https://twitter.com/sbaerlocher

Veeam Agent for Windows

The Veeam agent for Windows package provides the free version of the product which can be upgraded with the appropriate license key. But what this allows for is the streamlined approach of installing the Veeam Agent for Windows to provide a level of availability to your endpoints or even server builds.

I am going to walk through the steps to get this package up and running on your workstation.

Installation of Veeam Agent for Windows Using Chocolatey

First up we need to know the command to install the package from chocolatey, the previous blog post runs through this process. By navigating to https://chocolatey.org/packages you have the long list of community driven packages that have been created and shared.

In the top corner of the page you have the ability to search these packages.

100918 1246 WindowsOper1

In the search bar, type ‘Veeam’ it will as of today bring you two packages that are available. The one we would like to install that is the most recent package is the ‘Veeam Agent for Microsoft Windows 2.2.0.589’

100918 1246 WindowsOper2

As you can see from the command line text above this is what we require for chocolatey to install this package, take a copy of that text and head on over to the workstation you wish to install the agent on.

100918 1246 WindowsOper3

You will notice I am running PowerShell and I am running the shell as an Administrator. The -y on the end of the command as stated in the previous post will bypass any prompts for me to proceed. At this point hit enter.

This process is going to download the pre-requisites that are required and the Veeam agent. You will need to make sure that no other version of the agents is installed on the system.

100918 1246 WindowsOper4

Configuration of Veeam Agent for Windows

At this point we have the Veeam Agent installed on our machine, to confirm this head down to the Windows system tray. You will also see that the “Backup settings are not configured”

100918 1246 WindowsOper5

Right click on that icon and select ‘Control Panel’

100918 1246 WindowsOper6

The control panel will appear but first you will see the licensing question, if you have a paid for license of the software this is where you can follow the instructions on screen to apply that.

100918 1246 WindowsOper7

For this scenario I will continue with the free mode license, select No. We can then continue and configure the backup.

100918 1246 WindowsOper8

Creating a Backup Job for Veeam Agent for Windows

The backup creation wizard is very simple. There are 4 choices you need to make.

What would you like to backup on this system:

100918 1246 WindowsOper9

Where would you like the backup to be stored:

100918 1246 WindowsOper10

Configure the backup to the specific location and set the retention for the backup job:

100918 1246 WindowsOper11

Set a schedule for when the backup job should take place:

100918 1246 WindowsOper12

Finally you will receive a nice summary of everything that is going to happen now once this job is configured:

100918 1246 WindowsOper13

Uninstall

If you decide that you no longer wish to have the Veeam agent installed on your system, then you are able to run the following command again from Chocolatey to uninstall.

100918 1246 WindowsOper14

Thanks for taking the time to read through and hopefully windows package management for Veeam Agent for Windows is useful for you, if you have any feedback on this then please contact me. I have some interesting ideas on what else can be packaged up for use within Chocolatey.

 

]]>
https://vzilla.co.uk/vzilla-blog/windowsoperationsusingchocolateyforveeamdeployment/feed 0
Windows Operations, Introducing Chocolatey for Windows Package Management https://vzilla.co.uk/vzilla-blog/windows-operations-introducing-chocolatey-for-windows-package-management https://vzilla.co.uk/vzilla-blog/windows-operations-introducing-chocolatey-for-windows-package-management#respond Mon, 08 Oct 2018 13:09:21 +0000 https://vzilla.co.uk/?p=1263 One thing I have been meaning to write for a while now is around what I use to build out my templates from a software point of view, this could be the windows workstation or my windows server templates.

From a Mac-OS perspective I use HomeBrew but I wanted to focus this on the windows side of things because there is not a great deal of options when it comes to Windows Packet Management. My go to has been Chocolatey.

100818 1259 WindowsOper1

For those in the Linux world you can skip this one from the opening introduction, you guys have had yum for a while…

The first scary warning is that it does involve the scary command prompt window (again see last message, if you are looking into saving time and effort then you are well versed in the art of leveraging command line functionality and PowerShell in your windows environments as a start.

Using Chocolatey For Windows Package Management

Chocolatey is FREE and an Open Source package manager for Windows, as I said if you have ever administered Linux this will look very familiar to you.

In general, package managers are great for installing and managing multiple programs at the same time. Chocolatey do offer a pro-business version but I would expect for the most the free version is all we need.

100818 1259 WindowsOper2

To get started we need to head on over to the Chocolatey site which can be found at https://chocolatey.org/

Installing Chocolatey

You will see the “Install Chocolatey Now” you have two options here to begin the install from this page, either command line or PowerShell. Both commands can be copied from this page into your machine.

100818 1259 WindowsOper3

In your clipboard you will have either the command line text or the PowerShell, open the relevant shell up and paste that command in. Remember to open as an Administrator account.

PowerShell

100818 1259 WindowsOper4

Command Line

100818 1259 WindowsOper5

Next you hit enter on that command in either shell to start the simple installation process.

100818 1259 WindowsOper6

That’s it, Chocolatey is installed, to begin using or doing anything we need to close this window and open either PowerShell or the Command Line back up.

PowerShell

100818 1259 WindowsOper7

Command Line

100818 1259 WindowsOper8

Windows Package Management With Chocolatey

We are now ready to leverage the power of this package manager and start installing some software. To view the packages available for install you can visit – https://chocolatey.org/packages there are currently over 6000 packages available. A note here is that these are community maintained packages.

100818 1259 WindowsOper9

Single Program

The first thing to show is how to install a single program, we can then get into the multiple programs piece which is generally where I use this package manager when building out my templates or my workstations.

Search for the program on the site that you wish to install and that is not currently installed on your system. I am going to choose NotePad ++

100818 1259 WindowsOper10

You will need to copy the command line text for either PowerShell or the Command Line, copy or type that into your workstation.

100818 1259 WindowsOper11

Hit enter and the download will begin but it will prompt you to run the installation script. Select Yes to proceed.

100818 1259 WindowsOper12

NotePad ++ is successfully installed.

100818 1259 WindowsOper13

If you wanted to bypass that prompt, then a simple -y would bypass that prompt and go ahead with the installation. Below shows the automated installation of Git.

100818 1259 WindowsOper14

Ok so that’s great, it removed the next next next of clicking through a wizard to install both of those software packages, but what it also does is remove the time it takes to navigate to those vendor sites and download the latest packages.

Multiple Programs

Let’s move onto the multiple program’s scenario. This is the perfect way to get that fresh image or server build to a state that you want without too much effort at all.

First up you most likely have that list of software somewhere of all the things you want on your personal machine or server build, open up the notepad ++ we just installed, and we can start creating this multiple program build list.

Search through the packages on the site to find the install command for the software you require and add them to the list. I have selected a few below that I wish to install.

100818 1259 WindowsOper15

If you want to avoid being prompted to agree to the license terms for every program type -y at the end of your text so the software installation.

100818 1259 WindowsOper16

Copy that text to your PowerShell or Command Line window and hit enter.

100818 1259 WindowsOper17

My list had an error with one of the packages, I wanted to show this because this is Windows, but the log is clear that “Another installation currently in progress try again later.” Relates to the msiexec.exe being in use at the time. This is one consideration you may have to make when creating your lists.

100818 1259 WindowsOper18

Let’s fix that putty install by running that same command again.

100818 1259 WindowsOper19

I could take a video and show you how quick this is or could just download and give it a try for yourselves but running this command took less than a minute which is a lot quicker than going to each package website and downloading their software individually.

Upgrades / Updates

It doesn’t stop there though, obviously there will be updates to these packages over time. We want to make sure we have the latest software on our systems, the following command can be ran to achieve the checking of this for all packages or you could use individual packages instead of the ‘all’

100818 1259 WindowsOper20

Obviously, I just ran these already, so you would expect them all to be up to date.

100818 1259 WindowsOper21

Uninstall

It is also very simple to uninstall a package, if I wanted to now remove a package we could run the following to remove that from the system.

100818 1259 WindowsOper22

If you found the post useful for then let me know also I would love to hear your impressions of chocolaty for windows package management. Apologies for the picture quality I will look to change the way they are shown within the posts.

]]>
https://vzilla.co.uk/vzilla-blog/windows-operations-introducing-chocolatey-for-windows-package-management/feed 0