Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft System Center Data Protection Manager Cookbook

You're reading from   Microsoft System Center Data Protection Manager Cookbook Maximize storage efficiency, performance, and security using System Center LTSC and SAC releases

Arrow left icon
Product type Paperback
Published in Dec 2018
Publisher
ISBN-13 9781787289284
Length 424 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Patrick Lownds Patrick Lownds
Author Profile Icon Patrick Lownds
Patrick Lownds
Charbel Nemnom Charbel Nemnom
Author Profile Icon Charbel Nemnom
Charbel Nemnom
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Installing and Upgrading DPM FREE CHAPTER 2. DPM Post-Installation and Management Tasks 3. Protecting Hyper-V VMs 4. Monitoring DPM and Configuring Role-Based Access 5. Protecting Microsoft Workloads with DPM 6. Securing Windows Client with DPM 7. Protecting Microsoft Azure Stack with DPM 8. Protecting Workgroups and Untrusted Domains 9. Recovering Data from Backup 10. Integrating DPM with Azure Backup 11. Other Books You May Enjoy

Automating the installation of DPM

This recipe will cover how to automate the installation of DPM Server.

Getting ready

In the Installing DPM recipe in this chapter, we showed you how to install DPM using a local SQL Server and using a remote SQL Server. However, this was a manual installation. 

Automating the installation of DPM consists of two steps:

  1. Installing the SQL Server instance
  2. Installing the DPM server

You can disregard the first step if you already have SQL Server deployed locally or on a remote server in your environment.

In this recipe, we will cover the installation of SQL Server and DPM in an automated fashion. 

How to do it...

Make sure that your operating system is fully patched and rebooted before you start the installation. Now follow these steps:

  1. Install the SQL Server instance:
    1. Mount the SQL Server 2016 media and then open the Command Prompt (cmd).
    2. Browse to the drive letter where SQL Server is mounted.
    3. Type in the following command to automate the installation of SQL Server and add all of the required features:
Please make sure to update the domain name and SQL Service accounts in the following command so that they match your environment.
Setup.exe /Q /ACTION=install /IACCEPTSQLSERVERLICENSETERMS /FEATURES=SQLEngine,RS /INSTANCENAME=DPMINSTANCE /INSTANCEDIR="D:\Program Files\Microsoft SQL Server" /INSTALLSHAREDWOWDIR="D:\Program Files (x86)\Microsoft SQL Server" /INSTALLSHAREDDIR="D:\Program Files\Microsoft SQL Server" /SQLSVCACCOUNT=”VIRT\sqldpm” /SQLSYSADMINACCOUNTS=”VIRT\sqldpm” /SQLSVCPASSWORD="dpm2016+1" /RSSVCACCOUNT=”VIRT\sqldpm” /RSSVCPASSWORD="dpm2016+1" /AGTSVCACCOUNT=”VIRT\sqldpm” /AGTSVCPASSWORD="dpm2016+1" /SECURITYMODE=SQL /SAPWD=”dpm2016+1” /SQLTEMPDBDIR=”D:\Program Files\Microsoft SQL Server\TempDB\\” /SQLUSERDBDIR=”D:\Program Files\Microsoft SQL Server\SQLData\\” /SQLUSERDBLOGDIR=”D:\Program Files\Microsoft SQL Server\SQLLog\\”

Please refer to the following screenshot for its output:

    1. Make sure that you have downloaded SQL Server Management Studio (SSMS) version 16.5.3 and that you have copied it to the server: http://go.microsoft.com/fwlink/?LinkID=840946.
    2. Open the cmd.exe window and type in the following command:
SSMS-Setup-ENU.exe /install /quiet /norestart
Please note that the SSMS installation may take some time to finish.
  1. Install the DPM server:
    1. Open a command-line prompt in elevated mode and type in the following command:
dism.exe /Online /Enable-feature /All /FeatureName:Microsoft-Hyper-V /FeatureName:Microsoft-Hyper-V-Management-PowerShell /quiet /norestart
DPM supports Item-Level Recovery (ILR), which allows you to perform a granular recovery of files, folders, volumes, and virtual hard disks (VHDXs) from a host-level backup of Hyper-V virtual machines. The Hyper-V Role and PowerShell Management Tools features are required by the DPM server. Please read Chapter 3, Protecting Hyper-V VMs, for more information.
    1. Once the Hyper-V role is installed, you need to restart the DPM server before you move on to the next step.
    1. Once the DPM server has been restarted, open Notepad, copy the following scripts into it, and then save the file as DPMSetup.ini:
Please note that you can use the same script that follows, regardless of whether the SQL Server instance has been installed on the DPM server or on a remote SQL Server.
[OPTIONS]
UserName=<Domain-name\Username>
CompanyName=<Ur-Company>
ProductKey=XXXX-XXXX-XXXX-XXXX-XXXX
SqlAccountPassword=<The password for the SQL sa account>
ProgramFiles = <Location path where you want to install DPM>
DatabaseFiles = <Location path where you want to install DPMDB>
IntegratedInstallSource = <Location path where the DPM media is extracted>
SQLMachineName=<Name of the SQL Server Computer> OR <SQL Cluster Name>
SQLInstanceName=<Name of the SQL Server instance>
SQLMachineUserName=<Domain-name\Username> SQLMachinePassword=<Password for the user name Setup must use>
SQLMachineDomainName=<Domain name to which the SQL Server computer is attached to>
ReportingMachineName=<Name of the SQL Server Computer> OR <SQL Cluster Name>
ReportingInstanceName=<Name of the SQL Server instance>
ReportingMachineUserName=<Domain-name\Username>
ReportingMachinePassword=<Password for the user name Setup must use>
ReportingMachineDomainName=<Domain name to which the SQL Server computer is attached to>
    1. The following screenshot shows you what the DPMSetup.ini file will look like:
    1. After saving the DPMSetup.ini file, in an elevated command prompt on the DPM server, type in the following command and press Enter:
start /wait D:\SCDPM2016\setup.exe /i /f D:\DPMSetup.ini /l D:\dpmlog.txt
The D:\SCDPM2016\ path indicates the media in the DPM location where you'll run setup.exeD:\DPMSetup.ini is the location path where you saved the DPMSetup.ini file.
    1. In just a few minutes, DPM will be installed automatically, as shown in the following screenshot:
Finally, you need to install and update the DPM server to the latest Update Rollup (UR) if you are using the Long-Term Servicing Channel (LTSC). At the time of writing this book, DPM 2016 Update Rollup 6 has been released, and you can download it from the following link: https://www.catalog.update.microsoft.com/Search.aspx?q=4456327.
If you are using the Semi-Annual Channel (SAC) for DPM (that is, DPM 1801, 1807, 1901, and so on), then the Semi-Annual Channel, with its more frequent release cycle, does not receive update releases.

How it works...

The final result of an automated installation will be better than a manual implementation. Thus, this will ensure that you have a consistent deployment across your environment.

See also

You have been reading a chapter from
Microsoft System Center Data Protection Manager Cookbook
Published in: Dec 2018
Publisher:
ISBN-13: 9781787289284
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image