PowerShell script to deploy Veeam Backup & Replication

In this blog post, I will show you how you can deploy Veeam Backup & Replication 9.5 with Update 3 to a virtual machine. This is a really handy, little script because it can help you get Veeam going in your lab in a snap. The basic steps to accomplish this are as follows.

1. Create a virtual machine running Windows Server 2016. In my case, I created a Hyper-V VM called Management01.

2. Download a copy of Veeam Backup & Replication and prepare either an already existing license file or request a trial one from the same download page.

3. In our case, we stored both files in F:\Temp1

4. Grab a copy of the PowerShell script from my GitHub repository and save it to the same F:\Temp1 location

5. Open an Administrative PowerShell Prompt and change the path to F:\temp1. Then type Import-Module .\Install-Veeam-HyperV.PS1 -Force -Verbose and press Enter. This will load the Install-Veeam Module which we will use to deploy Veeam to our lab.

6. Type Install-Veeam -VMName Management01 -GuestOSName -Management01 -VMPath F:\dcbuild_test and run it.

7. On the Please Select the Veeam 9.5 UR3 ISO window, browse to F:\temp1\VeeamBackup&Replication_9.5.0.1535.Update3.iso

8. On the Please Select the Veeam License File window, browse to your license file prepared at step 2. In my case, I used my Veeam NFR license.

9. Input the credentials for your lab. In my case, I will install using my Domain Administrator Account “MVPDays\Administrator”. We will pipe this into the VM using PowerShell direct with the $DomainCred variable.

At this point it is time to sit back and relax as the next steps will happen automatically:

    1. Add a new VHDx file from the host
    2. Format the new VHDx file and giving it a volume label of Veeam
    3. Mount the VHDx to the host
    4. Copy the Veeam ISO specified earlier
    5. Copy the Veeam license file specified earlier
    6. Install 2012 System CLR types
    7. Install SQL Express
    8. Install the Veeam Backup & Replication 9.5 server
    9. Install the Veeam Backup Console
    10. Install the Explorer for Active Directory
    11. Install the Explorer for Exchange
    12. Install the Explorer for SQL
    13. Install the Explorer for Oracle
    14. Install the Explorer for SharePoint
    15. Install the Enterprise Manager web and Cloud Portal
    16. Finally update to Rollup 3

Your finished product will look just like this:

I hope you enjoyed this post, and please feel free to update my code and use it in your lab. As always, happy learning!

See more

Table of Contents
Similar Blog Posts
Business | March 5, 2024
Technical | February 5, 2024
Business | December 7, 2023
Stay up to date on the latest tips and news
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam’s Privacy Policy
You're all set!
Watch your inbox for our weekly blog updates.
OK
Veeam Data Platform
Free trial
Veeam Data Platform
We Keep Your Business Running