Install Veeam Backup & Replication using a PowerShell script

Original author: Dave Kawula
  • Transfer
Recently, my colleague Dave Kaula laid out for public use a script to install Veeam Backup & Replication, which he used to demonstrate the product in his laboratory. The script can be useful to those who are planning to deploy a solution, for example, in a test environment or in an “all on one machine” scenario.

Dave wrote a short accompanying article to the script, which I bring to your attention.

So, welcome under cat.


In this article I will tell how to install Veeam Backup & Replication 9.5 Update 3 on a virtual machine on the Hyper-V platform.

Important! We will perform the installation according to the “all on one machine” scenario , namely: the backup server Veeam backup server (with SQL Server 2012 Express Edition included in the installation package), as well as the Veeam Backup Enterprise Manager server. Before installation, check that all relevant system requirements described in the documentation are met . For the account under which the Veeam Backup service will work, it is assumed that you have domain administrator rights.

To install the solution, you need to follow these simple steps:

  1. Create a virtual machine running Windows Server 2016. For example, I will create a VM in Hyper-V Manager and call it Management01 .


  2. Download Veeam Backup & Replication from here , then either prepare an existing file with a commercial license, or request a license for a trial version or NFR . In our case, both files are already stored in the folder F: \ Temp1 .


  3. In the same folder we save this script .
  4. Open the PowerShell command line (Administrative PowerShell Prompt) and specify the path F: \ Temp1 , then enter the command:

    Import-Module .\Install-Veeam-HyperV.PS1 -Force -Verbose

    After that, the Install-Veeam module will be loaded , which we will use to install Veeam Backup & Replication.


  5. Execute the command:

    Install-Veeam -VMName Management01 -GuestOSName -Management01 -VMPath F:\dcbuild_test 
  6. In the window that opens, select the file VeeamBackup & Replication_9.5.0.1536.Update3.iso in the folder F: \ temp1 .
  7. Then, in the license file selection window, open the license file from step # 2. I will use my Veeam NFR license.
  8. An account entry window will appear. As already mentioned, in the test environment, Veeam Backup often assigns an account with domain administrator rights, and this example is not an exception. Enter the username and password, in this example I use the account MVPDays \ Administrator .


  9. After that, a fully automated sequence of actions begins, so you just have to wait for the result.



Here is what the script does:

1) Adds a new VHDx file from the host
2) Performs its naming (calls the new volume Veeam )
3) Mounts the new VHDx on the host
4) Copies the Veeam ISO image
5) Copies the license file Veeam
6) Installs 2012 System CLR types
7) Installs SQL Server 2012 Express Edition
8) Installs Veeam Backup & Replication 9.5 Server
9) Installs Veeam Backup Console Console
10) Installs Veeam Explorer for Active Directory
11) Installs Veeam Explorer for Exchange
12) Installs Veeam Explorer for SQL
13) Installs Veeam Explorer for Oracle
14) Installs Veeam Explorer for SharePoint
15) Installs Veeam Enterprise Manager (web and Cloud Portal)
16) Installs Update 3

After the script completes, the familiar Veeam Backup & Replication launch dialog will appear:



I hope my humble work will be useful to you. Successful work!

Additional links


Original PowerShell script
Habré article with a review of Veeam Backup & Replication 9.5 Update 3 A
free video tutorial "PowerShell Basics" (in English) from our colleague T. Devin
An article on Habré about using PowerShell to work with Veeam Backup Free Edition

Also popular now: