Академический Документы
Профессиональный Документы
Культура Документы
MVPDays Publishing
http://www.mvpdays.com
All rights reserved. No part of this book may be reproduced or transmitted in any form or by any
means without the prior written permission of the publisher.
ISBN:TBA
Feedback Information
We’d like to hear from you! If you have any comments about how we could improve the quality
of this book, please don’t hesitate to contact us by visiting www.checkyourlogs.net or sending an
email to feedback@mvpdays.com.
iii
Acknowledgements
iii
Acknowledgements
Acknowledgements
From Dave
Cristal, you are my rock and my source of inspiration. For the past 20 + years you have been
there with me every step of the way. Not only are you the “BEST Wife” in the world you are my
partner in crime. Christian, Trinity, Keira, Serena, Mickaila and Mackenzie, you kids are so patient
with your dear old dad when he locks himself away in the office for yet another book. Taking the
time to watch you grow in life, sports, and become little leaders of this new world is incredible to
watch.
Thank you, Mom and Dad (Frank and Audry) and my brother Joe. You got me started in this crazy
IT world when I was so young. Brother, you mentored me along the way both coaching me in
hockey and helping me learn what you knew about PC’s and Servers. I’ll never forget us as
teenage kids working the IT Support contract for the local municipal government. Remember
dad had to drive us to site because you weren’t old enough to drive ourselves yet. A great
career starts with the support of your family and I’m so lucky because I have all the support one
could ever want.
A book like this filled with amazing Canadian MVP’s would not be possible without the support
from the #1 Microsoft Community Program Manager – Simran Chaudry. You have guided us
along the path and helped us to get better at what we do every day. Your job is tireless and
your passion and commitment make us want to do what we do even more.
Last but not least, the MVPDays volunteers, you have donated your time and expertise and
helped us run the event in over 20 cities across North America. Our latest journey has us
expanding the conference worldwide as a virtual conference. For those of you that will read this
book your potential is limitless just expand your horizons and you never know where life will take
you.
iv
About the Authors
Dave is well-known in the community as an evangelist for Microsoft, 1E, and Veeam
technologies. Locating Dave is easy as he speaks at several conferences and sessions each year,
including TechEd, Ignite, MVP Days Community Roadshow, and VeeamOn.
Recently Dave has been honored to take on the role of Conference Co-Chair of TechMentor with
fellow MVP Sami Laiho. The lineup of speakers and attendees that have been to this conference
over the past 20 years is really amazing. Come down to Redmond or Orlando in 2018 and you
can meet him in person.
As the founder and Managing Principal Consultant at TriCon Elite Consulting, Dave is a leading
technology expert for both local customers and large international enterprises, providing optimal
guidance and methodologies to achieve and maintain an efficient infrastructure.
BLOG: www.checkyourlogs.net
Twitter: @DaveKawula
v
About the Authors
Cristal is also only the 2nd Woman in the world to receive the prestigious Veeam Vanguard
Community excellence award. In July of 2017 she was awarded the designation of Microsoft
MVP.
Early in her career Cristal worked as a consultant with Microsoft authoring content for internal
SMSGR and GTR teams. This content was used to train internal support engineers and global
escalation engineering teams.
Cristal can be found speaking at Microsoft Ignite, MVPDays, and other local user groups. She is
extremely active in the community and has recently helped publish a book for other Women
MVP’s called Voices from the Data Platform.
BLOG: http://www.checkyourlogs.net
Twitter: @supercristal1
vi
About the Authors
Cary Sun is CISCO CERTIFIED INTERNETWORK EXPERT (CCIE No.4531) and MCSE, MCIPT, Citrix
CCA with over twenty years in the planning, design, and implementation of network technologies
and Management and system integration. Background includes hands-on experience with multi-
platform, all LAN/WAN topologies, network administration, E-mail and Internet systems, security
products, PCs and Servers environment. Expertise analyzing user’s needs and coordinating
system designs from concept through implementation. Exceptional analysis, organization,
communication, and interpersonal skills. Demonstrated ability to work independently or as an
integral part of team to achieve objectives and goals. Specialties: CCIE /CCNA / MCSE / MCITP /
MCTS / MCSA / Solution Expert / CCA
Cary’s is a very active blogger at checkyourlogs.net and always available online for questions
from the community. He passion about technology is contagious and he makes everyone around
him better at what they do.
Blog:http://www.checkyourlogs.net
Twitter:@SifuSun
vii
About the Authors
viii
Contents
Contents
Acknowledgements ...................................................................................................... iv
From Dave ............................................................................................................. iv
Contents........................................................................................................................ ix
Introduction ................................................................................................................. 13
Introduction ................................................................................................................. 16
Chapter 1...................................................................................................................... 20
Pre-Requisites ............................................................................................................. 20
Lab Server Names .................................................................................................... 20
Building the Lab with BigDemo_DPM.PS1 ................................................................ 22
ix
Contents
Chapter 2...................................................................................................................... 77
Chapter 3...................................................................................................................... 97
xi
Contents
Chapter6..................................................................................................................... 139
xii
Introduction North American MVPDays Community Roadshow
Introduction
MVPDays was founded by Cristal and Dave Kawula back in 2013. It started as a simple idea;
“There’s got to be a good way for Microsoft MVPs to reach the IT community and share their
vast knowledge and experience in a fun and engaging way” I mean, what is the point in
recognizing these bright and inspiring individuals, and not leveraging them to inspire the
community that they are a part of.
Anyone that has an interest in technology, is eager to learn, and wants to meet other like-
minded individuals. This Roadshow is not just for Microsoft MVP’s it is for anyone in the IT
Community.
Make sure you check out the MVPDays website at: www.mvpdays.com. You never know maybe
the roadshow will be coming to a city near you.
The goal of this particular book is to bring you real world step-by-step guidance from our expert
MVP Authors on the deployment of System Center Data Protection Manager. It has been
written with the most current techniques possible to help with your migrations and learning
process.
13
Introduction North American MVPDays Community Roadshow
Sample Files
All sample files for this book can be downloaded from www.checkyourlogs.net and
www.github.com/dkawula
Additional Resources
In addition to all tips and tricks provided in this book, you can find extra resources like articles
and video recordings on our blog http://www.checkyourlogs.net.
14
Introduction North American MVPDays Community Roadshow
15
Introduction North American MVPDays Community Roadshow
Introduction
MVPDays was founded by Cristal and Dave Kawula back in 2013. It started as a simple idea;
“There’s got to be a good way for Microsoft MVPs to reach the IT community and share their
vast knowledge and experience in a fun and engaging way” I mean, what is the point in
recognizing these bright and inspiring individuals, and not leveraging them to inspire the
community that they are a part of.
Anyone that has an interest in technology, is eager to learn, and wants to meet other like-
minded individuals. This Roadshow is not just for Microsoft MVP’s it is for anyone in the IT
Community.
Make sure you check out the MVPDays website at: www.mvpdays.com. You never know maybe
the roadshow will be coming to a city near you.
The goal of this particular book is to bring you real world step-by-step guidance from our expert
MVP Authors on Microsoft System Center Data Protection Manager.
These are the same experts you come to see in person at the MVPDays Roadshow. This book is
written in the format of a Step-by-Step learning guide. We really hope you find some immense
value in what we have written.
16
Introduction North American MVPDays Community Roadshow
17
Introduction North American MVPDays Community Roadshow
Sample Files
All sample files for this book can be downloaded from www.checkyourlogs.net and
www.github.com/dkawula
Additional Resources
In addition to all tips and tricks provided in this book, you can find extra resources like articles
and video recordings on our blog http://www.checkyourlogs.net.
18
Introduction North American MVPDays Community Roadshow
19
Chapter 1 Pre-Requisites
Chapter 1
Pre-Requisites
Lab Server Names
The follow table describes the required Virtual Machines to build this lab. This lab is designed to
be built on a Hyper-V Host Server with a minimum of 16 GB of RAM. An automation script called
BigDemo_DPM.PS1 has been used to provision this lab environment. A copy of this script can be
found in the appendices.
20
Chapter 1 Pre-Requisites
21
Chapter 1 Pre-Requisites
2. Open an administrative
Invoke-WebRequest -Uri "
PowerShell prompt and https://raw.githubusercontent.com/dkawula/Deploying-
System-Center-Data-Protection-Manager-
type: 1801/master/BigDemo_DPM.ps1" -OutFile "C:\Post-
Install\BigDemo_DPM.PS1"
22
Chapter 1 Pre-Requisites
https://www.microsoft.com/en-us/evalcenter/evaluate-system-
center-release
https://www.microsoft.com/en-us/evalcenter/evaluate-sql-
server-2016
5. Copy BigDemo_DPM.PS1
from C:\Post-Install to
F:\DCBuild_Test
23
Chapter 1 Pre-Requisites
6. Open BigDemo_DPM.PS1
with the PowerShell ISE
edit lines 2140 and 2131
putting in Your Product
key received with the
EVAL Version of Windows
Server 2016 Downloaded
above
Save BigDemo_DPM.PS1
24
Chapter 1 Pre-Requisites
8. Open an administrative
PowerShell prompt. Run
BigDemo_DPM.PS1
WorkingDir:
f:\DCBuild_Test
Organization: MVPDays
Rockstars
TimeZone: Mountain
Standard Time
AdminPassword:
P@ssw0rd
DomainName:
MVPDays.com
DomainAdminPassword:
P@ssw0rd
VirtualSwitchName:
MVPDays_Test_VSwitch
Subnet: 172.16.100.
VirtualNATSwitchName:
InternalNATSwitch5
25
Chapter 1 Pre-Requisites
ExtraLabFiles: C:\
9. It will take
approximately 2
hours to build the Lab
Environment
26
Chapter 1 Pre-Requisites
27
Chapter 1 Pre-Requisites
These steps are documented for the purposed of learning in this book. All of these steps have
been updated in the lab build script with a custom function called Install-RRAS.PS1 which will be
discussed in the next section of this book. These steps are not required if you used
BigDemo_DPM.PS1 to build your lab.
28
Chapter 1 Pre-Requisites
29
Chapter 1 Pre-Requisites
Internet: 192.168.0.254
Subnet = 255.255.255.0
Gateway = 192.168.0.1
30
Chapter 1 Pre-Requisites
31
Chapter 1 Pre-Requisites
32
Chapter 1 Pre-Requisites
33
Chapter 1 Pre-Requisites
34
Chapter 1 Pre-Requisites
35
Chapter 1 Pre-Requisites
36
Chapter 1 Pre-Requisites
37
Chapter 1 Pre-Requisites
38
Chapter 1 Pre-Requisites
39
Chapter 1 Pre-Requisites
40
Chapter 1 Pre-Requisites
41
Chapter 1 Pre-Requisites
Install-NetNat.PS1
As previously discussed in the step-by-step process for enabling routing for this lab a custom
module has been written for this and included in the BigDemo_DPM.PS1 script. For the
purposes of learning in this book we have included both a link to the script and the script itself.
Function Install-NetNat {
param
[string]$VMName,
[string]$GuestOSName
Else {
42
Chapter 1 Pre-Requisites
43
Chapter 1 Pre-Requisites
Install-RRAS.PS1
As previously discussed in the step-by-step process for enabling routing for this lab a custom
module has been written for this and included in the BigDemo_DPM.PS1 script. For the
purposes of learning in this book we have included both a link to the script and the script itself.
Function Install-RRAS{
param
[string] $VMName,
[string] $GuestOSName,
[string] $IPAddress
44
Chapter 1 Pre-Requisites
$newroute = '192.168.10.1'
$ExternalInterface="Internet"
$InternalInterface="CorpNet"
45
Chapter 1 Pre-Requisites
for the purposed of learning in this book. All of these steps have been updated in the lab build
script with a custom function called Install-RRAS.PS1 which will be discussed in the next section
of this book. These steps are not required if you used BigDemo_DPM.PS1 to build your lab.
46
Chapter 1 Pre-Requisites
Software Requirements
The following table provides a summary of the Microsoft software that is used in this guide.
ADK 1709
47
Chapter 1 Pre-Requisites
48
Chapter 1 Pre-Requisites
SCOM and VMM Service Accounts These have been automatically added as part
of the lab build. They can be found in the
BigDemo_DPM.PS1 Script. We didn’t
document them as part of this book because
the focus is on Data Protection Manager and
not Virtual Machine Manager or Operations
Manager.
49
Chapter 1 Pre-Requisites
The Computer Accounts as they have been joined to the MVPDays Domain
50
Chapter 1 Pre-Requisites
51
Chapter 1 Pre-Requisites
52
Chapter 1 Pre-Requisites
Right-Click on DPM01
and click Settings
2. Click on SCSI
Controller, click Hard
Drive and click Add
53
Chapter 1 Pre-Requisites
3. Click New
54
Chapter 1 Pre-Requisites
Name: DPM01-
D.VHDX
Location:
F:\DCBuild_Test\VMs\
55
Chapter 1 Pre-Requisites
56
Chapter 1 Pre-Requisites
57
Chapter 1 Pre-Requisites
58
Chapter 1 Pre-Requisites
59
Chapter 1 Pre-Requisites
60
Chapter 1 Pre-Requisites
61
Chapter 1 Pre-Requisites
62
Chapter 1 Pre-Requisites
Prep-DPM1801SQL.PS1
For the installation of DPM for this book we have elected to run SQL Server 2016 SP1 as a local
instance. There are some specific steps that must run in a particular order prior to deploying
SQL Server for DPM. These have all been mapped out in this custom script.
The Script can be automated as a fully functional DPM SQL Installer where SQL Will automatically
be installed. Instead of we will show both the unattended installation and attended installation
of SQL in Chapter 2. These steps will just prep the DPM01 VM for the SQL Installation.
There is also a pre-requisite of having the SQL Server Management Studio version 16.5 installed
on the DPM Server. Chapter 2 covers everything step by step. If you wanted to skip chapter 2
you could simple un-comment the install steps and automate the SQL Install.
<#
Created: 2018-02-01
Version: 1.0
Author Dave Kawula MVP
Homepage: http://www.checkyourlogs.net
Disclaimer:
This script is provided "AS IS" with no warranties, confers no rights and
is not supported by the authors or CheckyourLogs or MVPDays Publishing
.Synopsis
Deploys System Center SQL Server 2016 Instance to a Hyper-V Lab VM
.DESCRIPTION
This Script was part of my BIGDemo series and I have broken it out into a
standalone function
You will need to have a SVC_SQL Pre-Created and SQL 2016 Media for this lab
to work
The Script will prompt for the path of the Files Required
63
Chapter 1 Pre-Requisites
The Script will prompt for an Admin Account which will be used in
$DomainCred
If your File names are different than mine adjust accordingly.
.EXAMPLE
TODO: Dave, add something more meaningful in here
.PARAMETER WorkingDir
Transactional directory for files to be staged and written
.PARAMETER VMname
The name of the Virtual Machine
.PARAMETER VMPath
The Path to the VM Working Folder - We create a new VHDx for the DPM Install
.PARAMETER GuestOSName
Name of the Guest Operating System Name
Function Install-SQLDPM{
param
(
[string]$VMName,
[string]$GuestOSName,
[string]$VMPath
[reflection.assembly]::loadwithpartialname("System.Windows.Forms")
$openFile = New-Object System.Windows.Forms.OpenFileDialog -Property @{
Title="Please SQL Server ISO"
}
$openFile.Filter = "iso files (*.iso)|*.iso|All files (*.*)|*.*"
If($openFile.ShowDialog() -eq "OK")
{
Write-Host "File $($openfile.FileName) selected"
}
if (!$openFile.FileName){
WriteErrorAndExit "Iso was not selected... Exitting"
}
$SQLISO = $openfile.FileName
[reflection.assembly]::loadwithpartialname("System.Windows.Forms")
$openFile = New-Object System.Windows.Forms.OpenFileDialog -Property @{
64
Chapter 1 Pre-Requisites
[reflection.assembly]::loadwithpartialname("System.Windows.Forms")
$openFile = New-Object System.Windows.Forms.OpenFileDialog -Property @{
Title="Please Select the Windows Server 2016 ISO"
}
$openFile.Filter = "ISO files (*.ISO)|*.ISO|All files (*.*)|*.*"
If($openFile.ShowDialog() -eq "OK")
{
Write-Host "File $($openfile.FileName) selected"
}
if (!$openFile.FileName){
WriteErrorAndExit "Iso was not selected... Exitting"
}
$WS2016ISO = $openfile.FileName
$DomainCred = Get-Credential
#$VMName = 'DPM01'
#$GuestOSname = 'DPM01'
#$VMPath = 'f:\dcbuild_Test\VMs'
#$SQL = 'VMM01\MSSQLSERVER'
#$SCOMDrive = 'd:'
65
Chapter 1 Pre-Requisites
Write-Output -InputObject "[$($VMName)]:: Adding the new VHDx for the SQL
Install"
Get-Disk | Where OperationalStatus -EQ "Offline" | Set-Disk -IsOffline
$False
Get-Disk | Where Number -NE "0" | Set-Disk -IsReadOnly $False
$Driveletter = get-wmiobject -class "Win32_Volume" -namespace "root\cimv2" |
where-object {$_.Label -like "SQL*"}
$SQLDrive = $Driveletter.DriveLetter
$SQLDrive
Write-Output -InputObject "[$($VMName)]:: Mounting SQL ISO"
Mount-DiskImage $iso.FullName
Mount-DiskImage $iso.FullName
66
Chapter 1 Pre-Requisites
function Wait-PSDirect {
param
(
[string]
$VMName,
[Object]
$cred
)
function Restart-DemoVM {
param
(
[string]
$VMName
)
function Write-Log {
param
(
[string]$systemName,
[string]$message
)
67
Chapter 1 Pre-Requisites
68
Chapter 1 Pre-Requisites
Running Prep-DPM1801.PS1
69
Chapter 1 Pre-Requisites
70
Chapter 1 Pre-Requisites
9.
True v4.0.30319
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.
0.0__b77a5c561934e089...
File
F:\DCBuild_Test\en_sql_server_2016_standard_with_service_pack_1_x64_dvd_9
540929.iso selected
True v4.0.30319
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.
0.0__b77a5c561934e089...
71
Chapter 1 Pre-Requisites
True v4.0.30319
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.
0.0__b77a5c561934e089...
Credential
ComputerName : TECHMENTORHV04
VhdFormat : VHDX
VhdType : Dynamic
FileSize : 4194304
Size : 53687091200
MinimumSize :
LogicalSectorSize : 512
PhysicalSectorSize : 4096
BlockSize : 33554432
ParentPath :
DiskIdentifier : 99ED252E-7252-4909-9CF0-7B5A54764750
FragmentationPercentage : 0
Alignment : 1
Attached : False
DiskNumber :
Number :
72
Chapter 1 Pre-Requisites
ObjectId :
{1}\\TECHMENTORHV04\root/Microsoft/Windows/Storage/Providers_v2\WSP_Volum
e.ObjectId="{14e75eea-c
7ee-11e7-a942-
806e6f6e6963}:VO:\\?\Volume{c9f8e274-255c-4f3c-8e04-7f838a01188d}\"
PassThroughClass :
PassThroughIds :
PassThroughNamespace :
PassThroughServer :
UniqueId : \\?\Volume{c9f8e274-255c-4f3c-8e04-7f838a01188d}\
AllocationUnitSize : 4096
DedupMode : NotAvailable
DriveLetter : E
DriveType : Fixed
FileSystem : NTFS
FileSystemLabel : SQL
FileSystemType : NTFS
HealthStatus : Healthy
OperationalStatus : OK
Path : \\?\Volume{c9f8e274-255c-4f3c-8e04-7f838a01188d}\
Size : 53550772224
SizeRemaining : 53445619712
PSComputerName :
73
Chapter 1 Pre-Requisites
E:
Version: 10.0.14393.0
Enabling feature(s)
[ 0.1% ]
[ 1.1% ]
[====== 10.9% ]
[======= 12.7% ]
[======== 14.5% ]
[========= 16.3% ]
[========== 18.1% ]
[=========== 20.0% ]
74
Chapter 1 Pre-Requisites
[============ 21.8% ]
[============= 23.6% ]
[============== 25.4% ]
[=============== 27.2% ]
[================ 29.0% ]
[================= 30.0% ]
[================== 31.2% ]
[================== 32.5% ]
[==========================100.0%==========================]
11:13 PM - [DPM01]::Rebooting
PS C:\Users\dkawula-admin>
Note: The script captures one very important step and that is to have the .NET Framework 3.5
installed prior to SQL Server. It also copies the required media for the lab in the book into the
75
Chapter 1 Pre-Requisites
VM’s on the SQL VHDx drive. DPM also requires that only Version 16.5 of the SQL Server
Management Studio be installed otherwise the installer will fail on pre-reqs.
76
Chapter 2 Install SQL Server 2016 SP1
Chapter 2
For the purpose of this book we have pre-created the SQL Service account as part of the
DCBuild_Test1 Script.
Note: These accounts must have Log on as a Service rights on the SQL server. This can be
achieved via Group Policy or via local policy. You cannot set via local policy if a domain group
policy is already setting a list of user accounts that can log in as a service.
The policy is configured at Computer Configuration -> Policies -> Windows Settings -> Security
Settings -> Local Policies -> User Rights Assignment and the setting is Log on as a Service.
For the purpose of this book / lab we have added the SVC_SQL Service account as a local
administrator on the DPM01 Server.
77
Chapter 2 Install SQL Server 2016 SP1
78
Chapter 2 Install SQL Server 2016 SP1
79
Chapter 2 Install SQL Server 2016 SP1
80
Chapter 2 Install SQL Server 2016 SP1
81
Chapter 2 Install SQL Server 2016 SP1
1. Logon to DPM01 as
MVPDays\Administrator
2. Mount SQL media to the Media available from the volume license download site
media drive of the site
server
3. Open File Explorer,
navigate to Computer
and then double-click
the Media Drive
4. When prompted by
User Account Control
(UAC), click Yes to
continue with the
installation.
5. The SQL Server
Installation Center
screen launches
82
Chapter 2 Install SQL Server 2016 SP1
83
Chapter 2 Install SQL Server 2016 SP1
4. Click Next
7. Click Next
84
Chapter 2 Install SQL Server 2016 SP1
85
Chapter 2 Install SQL Server 2016 SP1
86
Chapter 2 Install SQL Server 2016 SP1
the P@ssw0rd.
87
Chapter 2 Install SQL Server 2016 SP1
unattended installations
for the remaining
servers.
89
Chapter 2 Install SQL Server 2016 SP1
90
Chapter 2 Install SQL Server 2016 SP1
1. Logon to DPM01 as
91
Chapter 2 Install SQL Server 2016 SP1
92
Chapter 2 Install SQL Server 2016 SP1
1. Logon to
DPM01 as
MVPDays\Admi
nistrator
2. Launch SQL
Server
Management
Studio
3. Click Connect
to connect to
the local
database
93
Chapter 2 Install SQL Server 2016 SP1
4. Within the
Management
Studio, right-
click the
Server and
select
Properties
94
Chapter 2 Install SQL Server 2016 SP1
5. Select the
Memory
node
6. Reset the
maximum
memory to
one half the
memory of
the site
server.
7. Save settings.
95
Chapter 2 Install SQL Server 2016 SP1
8. If available
change the
amount of
RAM to 8192
96
Chapter 3 Install System Center Data Protection Manager 1801
Chapter 3
Disclaimer:
This script is provided "AS IS" with no warranties, confers no rights and
is not supported by the authors or CheckyourLogs or MVPDays Publishing
.Synopsis
Deploys System Center Data Protection Manager (DPM )1801 Server to a Hyper-V
Lab VM
.DESCRIPTION
This Script was part of my BIGDemo series and I have broken it out into a
standalone function
97
Chapter 3 Install System Center Data Protection Manager 1801
You will need to have a SCVMM Service Accounts Pre-Created and DPM 1801
Trial Media for this lab to work
The Script will prompt for the path of the Files Required
The Script will prompt for an Admin Account which will be used in
$DomainCred
If your File names are different than mine adjust accordingly.
.EXAMPLE
TODO: Dave, add something more meaningful in here
.PARAMETER WorkingDir
Transactional directory for files to be staged and written
.PARAMETER VMname
The name of the Virtual Machine
.PARAMETER VMPath
The Path to the VM Working Folder - We create a new VHDx for the DPM Install
.PARAMETER GuestOSName
Name of the Guest Operating System Name
Function Install-DPMPREP{
param
(
[string]$VMName,
[string]$GuestOSName,
[string]$VMPath
[reflection.assembly]::loadwithpartialname("System.Windows.Forms")
$openFile = New-Object System.Windows.Forms.OpenFileDialog -Property @{
Title="Please Select the DPM 1801 .EXE"
}
$openFile.Filter = "exe files (*.exe)|*.exe|All files (*.*)|*.*"
If($openFile.ShowDialog() -eq "OK")
{
Write-Host "File $($openfile.FileName) selected"
}
if (!$openFile.FileName){
WriteErrorAndExit "Iso was not selected... Exitting"
}
$DPMEXE = $openfile.FileName
98
Chapter 3 Install System Center Data Protection Manager 1801
$DomainCred = Get-Credential
#$VMName = 'DPM01'
#$GuestOSname = 'DPM01'
#$VMPath = 'f:\dcbuild_Test\VMs'
#$SQL = 'VMM01\MSSQLSERVER'
#$SCOMDrive = 'd:'
Enable-NetAdapterRss -Name *
99
Chapter 3 Install System Center Data Protection Manager 1801
Write-Output -InputObject "[$($VMName)]:: Adding the new VHDx for the DPM
Install"
Get-Disk | Where OperationalStatus -EQ "Offline" | Set-Disk -IsOffline
$False
Get-Disk | Where Number -NE "0" | Set-Disk -IsReadOnly $False
$Driveletter = get-wmiobject -class "Win32_Volume" -namespace "root\cimv2" |
where-object {$_.Label -like "DPM*"}
$DPMDrive = $Driveletter.DriveLetter
function Wait-PSDirect {
param
(
[string]
$VMName,
[Object]
$cred
)
function Restart-DemoVM {
param
(
[string]
$VMName
)
function Write-Log {
param
(
[string]$systemName,
[string]$message
)
101
Chapter 3 Install System Center Data Protection Manager 1801
Running Prep-DPM1801.PS1
102
Chapter 3 Install System Center Data Protection Manager 1801
7.
True v4.0.30319
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.
0.0__b77a5c561934e089...
Credential
103
Chapter 3 Install System Center Data Protection Manager 1801
PSComputerName : DPM01
RunspaceId : fa2d3d79-9a30-4390-9b07-cc9d6781ac8d
Actions : {MSFT_TaskExecAction}
Date :
Documentation :
Principal : MSFT_TaskPrincipal2
SecurityDescriptor : D:P(A;;FA;;;BA)(A;;FA;;;SY)(A;;FR;;;BU)
Settings : MSFT_TaskSettings3
State : 1
TaskName : ServerManager
Triggers : {MSFT_TaskLogonTrigger}
Version : 1.0
12:01 AM - [DPM01]::Rebooting
ComputerName : TECHMENTORHV04
104
Chapter 3 Install System Center Data Protection Manager 1801
VhdFormat : VHDX
VhdType : Dynamic
FileSize : 4194304
Size : 53687091200
MinimumSize :
LogicalSectorSize : 512
PhysicalSectorSize : 4096
BlockSize : 33554432
ParentPath :
DiskIdentifier : CF004747-CDF3-400C-A2E6-285346EA1F88
FragmentationPercentage : 0
Alignment : 1
Attached : False
DiskNumber :
Number :
ObjectId :
{1}\\TECHMENTORHV04\root/Microsoft/Windows/Storage/Providers_v2\WSP_Volum
e.ObjectId="{14e75eea-c
7ee-11e7-a942-
806e6f6e6963}:VO:\\?\Volume{6938b7d2-6f4f-4786-a298-ef91ea76dcb7}\"
PassThroughClass :
PassThroughIds :
PassThroughNamespace :
PassThroughServer :
UniqueId : \\?\Volume{6938b7d2-6f4f-4786-a298-ef91ea76dcb7}\
AllocationUnitSize : 4096
105
Chapter 3 Install System Center Data Protection Manager 1801
DedupMode : NotAvailable
DriveLetter : E
DriveType : Fixed
FileSystem : NTFS
FileSystemLabel : DPM
FileSystemType : NTFS
HealthStatus : Healthy
OperationalStatus : OK
Path : \\?\Volume{6938b7d2-6f4f-4786-a298-ef91ea76dcb7}\
Size : 53550772224
SizeRemaining : 53445619712
PSComputerName :
Name : {016e469a-835c-4627-b9d3-ffe97ccbde21}
ID : {016e469a-835c-4627-b9d3-ffe97ccbde21}
Group :
Profile : Domain
Platform : {}
LSM : False
PSComputerName : DPM01
RunspaceId : 000a2894-469c-4838-a8fd-1bf2d9b6101e
Caption :
Description :
106
Chapter 3 Install System Center Data Protection Manager 1801
ElementName : SCDPM-TCP
InstanceID : {016e469a-835c-4627-b9d3-ffe97ccbde21}
CommonName :
PolicyKeywords :
Enabled : 1
PolicyDecisionStrategy : 2
PolicyRoles :
ConditionListType : 3
CreationClassName : MSFT|FW|FirewallRule|{016e469a-835c-4627-b9d3-
ffe97ccbde21}
ExecutionStrategy : 2
Mandatory :
PolicyRuleName :
Priority :
RuleUsage :
SequencedActions : 3
SystemCreationClassName :
SystemName :
Action : 2
Direction : 1
DisplayGroup :
DisplayName : SCDPM-TCP
EdgeTraversalPolicy : 0
EnforcementStatus : {0}
LocalOnlyMapping : False
LooseSourceMapping : False
Owner :
Platforms : {}
PolicyStoreSource : PersistentStore
107
Chapter 3 Install System Center Data Protection Manager 1801
PolicyStoreSourceType : 1
PrimaryStatus : 1
Profiles : 1
RuleGroup :
StatusCode : 65536
Name : {1d818f78-4308-46bb-9e38-558aa237c456}
ID : {1d818f78-4308-46bb-9e38-558aa237c456}
Group :
Profile : Domain
Platform : {}
LSM : False
PSComputerName : DPM01
RunspaceId : 000a2894-469c-4838-a8fd-1bf2d9b6101e
Caption :
Description :
ElementName : SCDPM-UDP
InstanceID : {1d818f78-4308-46bb-9e38-558aa237c456}
CommonName :
PolicyKeywords :
Enabled : 1
PolicyDecisionStrategy : 2
PolicyRoles :
ConditionListType : 3
CreationClassName : MSFT|FW|FirewallRule|{1d818f78-4308-46bb-9e38-
558aa237c456}
108
Chapter 3 Install System Center Data Protection Manager 1801
ExecutionStrategy : 2
Mandatory :
PolicyRuleName :
Priority :
RuleUsage :
SequencedActions : 3
SystemCreationClassName :
SystemName :
Action : 2
Direction : 1
DisplayGroup :
DisplayName : SCDPM-UDP
EdgeTraversalPolicy : 0
EnforcementStatus : {0}
LocalOnlyMapping : False
LooseSourceMapping : False
Owner :
Platforms : {}
PolicyStoreSource : PersistentStore
PolicyStoreSourceType : 1
PrimaryStatus : 1
Profiles : 1
RuleGroup :
StatusCode : 65536
Name : {52b505e3-4d06-424d-b15d-60b55af4afb1}
109
Chapter 3 Install System Center Data Protection Manager 1801
ID : {52b505e3-4d06-424d-b15d-60b55af4afb1}
Group :
Profile : Domain
Platform : {}
LSM : False
PSComputerName : DPM01
RunspaceId : 000a2894-469c-4838-a8fd-1bf2d9b6101e
Caption :
Description :
InstanceID : {52b505e3-4d06-424d-b15d-60b55af4afb1}
CommonName :
PolicyKeywords :
Enabled : 1
PolicyDecisionStrategy : 2
PolicyRoles :
ConditionListType : 3
CreationClassName : MSFT|FW|FirewallRule|{52b505e3-4d06-424d-b15d-
60b55af4afb1}
ExecutionStrategy : 2
Mandatory :
PolicyRuleName :
Priority :
RuleUsage :
SequencedActions : 3
SystemCreationClassName :
SystemName :
Action : 2
Direction : 1
110
Chapter 3 Install System Center Data Protection Manager 1801
DisplayGroup :
EdgeTraversalPolicy : 0
EnforcementStatus : {0}
LocalOnlyMapping : False
LooseSourceMapping : False
Owner :
Platforms : {}
PolicyStoreSource : PersistentStore
PolicyStoreSourceType : 1
PrimaryStatus : 1
Profiles : 1
RuleGroup :
StatusCode : 65536
Name : {0ca36644-c3bd-45d7-84f5-ed7f1b8f5d2a}
ID : {0ca36644-c3bd-45d7-84f5-ed7f1b8f5d2a}
Group :
Profile : Domain
Platform : {}
LSM : False
PSComputerName : DPM01
RunspaceId : 000a2894-469c-4838-a8fd-1bf2d9b6101e
Caption :
Description :
InstanceID : {0ca36644-c3bd-45d7-84f5-ed7f1b8f5d2a}
CommonName :
PolicyKeywords :
Enabled : 1
PolicyDecisionStrategy : 2
PolicyRoles :
ConditionListType : 3
CreationClassName : MSFT|FW|FirewallRule|{0ca36644-c3bd-45d7-84f5-
ed7f1b8f5d2a}
ExecutionStrategy : 2
Mandatory :
PolicyRuleName :
Priority :
RuleUsage :
SequencedActions : 3
SystemCreationClassName :
SystemName :
Action : 2
Direction : 1
DisplayGroup :
EdgeTraversalPolicy : 0
EnforcementStatus : {0}
LocalOnlyMapping : False
LooseSourceMapping : False
Owner :
Platforms : {}
PolicyStoreSource : PersistentStore
PolicyStoreSourceType : 1
112
Chapter 3 Install System Center Data Protection Manager 1801
PrimaryStatus : 1
Profiles : 1
RuleGroup :
StatusCode : 65536
ComputerName : TECHMENTORHV04
VhdFormat : VHDX
VhdType : Dynamic
FileSize : 4194304
Size : 214748364800
MinimumSize :
LogicalSectorSize : 512
PhysicalSectorSize : 4096
BlockSize : 33554432
ParentPath :
DiskIdentifier : 41E71073-C290-480E-BA46-C84A44752477
FragmentationPercentage : 0
Alignment : 1
Attached : False
DiskNumber :
Number :
ComputerName : TECHMENTORHV04
113
Chapter 3 Install System Center Data Protection Manager 1801
VhdFormat : VHDX
VhdType : Dynamic
FileSize : 4194304
Size : 214748364800
MinimumSize :
LogicalSectorSize : 512
PhysicalSectorSize : 4096
BlockSize : 33554432
ParentPath :
DiskIdentifier : 1C0B069F-B87C-45FA-A0C2-A75D62C67BA5
FragmentationPercentage : 0
Alignment : 1
Attached : False
DiskNumber :
Number :
ComputerName : TECHMENTORHV04
VhdFormat : VHDX
VhdType : Dynamic
FileSize : 4194304
Size : 214748364800
MinimumSize :
LogicalSectorSize : 512
PhysicalSectorSize : 4096
BlockSize : 33554432
114
Chapter 3 Install System Center Data Protection Manager 1801
ParentPath :
DiskIdentifier : 01CD08D3-B556-4A36-98AC-5C1BBA1A728C
FragmentationPercentage : 0
Alignment : 1
Attached : False
DiskNumber :
Number :
ComputerName : TECHMENTORHV04
VhdFormat : VHDX
VhdType : Dynamic
FileSize : 4194304
Size : 214748364800
MinimumSize :
LogicalSectorSize : 512
PhysicalSectorSize : 4096
BlockSize : 33554432
ParentPath :
DiskIdentifier : FC23AC93-1AA3-49A9-B00D-7FA4FE8FADA9
FragmentationPercentage : 0
Alignment : 1
Attached : False
DiskNumber :
Number :
115
Chapter 3 Install System Center Data Protection Manager 1801
ComputerName : TECHMENTORHV04
VhdFormat : VHDX
VhdType : Dynamic
FileSize : 4194304
Size : 214748364800
MinimumSize :
LogicalSectorSize : 512
PhysicalSectorSize : 4096
BlockSize : 33554432
ParentPath :
DiskIdentifier : 23130F16-F954-4F02-9C01-A713EBE020FE
FragmentationPercentage : 0
Alignment : 1
Attached : False
DiskNumber :
Number :
ComputerName : TECHMENTORHV04
VhdFormat : VHDX
VhdType : Dynamic
FileSize : 4194304
Size : 214748364800
MinimumSize :
LogicalSectorSize : 512
PhysicalSectorSize : 4096
116
Chapter 3 Install System Center Data Protection Manager 1801
BlockSize : 33554432
ParentPath :
DiskIdentifier : C80B8574-059C-4459-AE14-D712320E7154
FragmentationPercentage : 0
Alignment : 1
Attached : False
DiskNumber :
Number :
PS C:\Users\dkawula-admin>
117
Chapter 3 Install System Center Data Protection Manager 1801
1. Logon to DPM01 as
MVPDays\Administrator
118
Chapter 3 Install System Center Data Protection Manager 1801
1. Logon to DPM01 as
MVPDays\Administrat
or
2. Browse to e:\System
Center Data Protection
Manager
3. Run Setup.exe
119
Chapter 3 Install System Center Data Protection Manager 1801
5. On the Microsoft
Software License Terms
page select Accept
120
Chapter 3 Install System Center Data Protection Manager 1801
7. On the Prerequisites
Check page type
DPM01 in Instance of
SQL Server and click
Check and Install and
then click Next
8. On the Product
Registration page click
Next
Special thanks to
@MrthomasRayner for
the Easter Egg in the
Lab Build Script
121
Chapter 3 Install System Center Data Protection Manager 1801
9. On the Installation
Settings page change
the path the
E:\DPMINSTALL and
click Next
122
Chapter 3 Install System Center Data Protection Manager 1801
123
Chapter 4 Configuring DPM 1801
Chapter 4
Note: MBS is enabled automatically when you're running at least DPM 2016 on Windows Server
2016. If DPM is running on a version of Windows Server older than Windows Server 2016, it
doesn't use MBS.
MBS backups are stored on an ReFS disk. It uses ReFS block cloning, and VHDX technology, Learn
more.
MBS provides intelligent storage for short-term backup to disk. MBS provides faster disk backup,
consuming less disk space. Without MBS, each datasource needs two volumes, one for the initial
backup and the other for delta changes.
DPM 2016 accepts volumes for storage. Once you add a volume, DPM formats the volume to
ReFS to use the new features of Modern Backup Storage. Volumes cannot reside on a dynamic
disk. Use only a basic disk.
While you can directly give a volume to DPM, you may face issues in extending the volume if a
need arises later. To prepare DPM for future expansion, Use the available disks to create a
storage pool, then create volumes on the storage pool, and expose the volumes to DPM. These
virtual volumes can then be extended when needed.
The remainder of this article provides the detail on how to add a volume and to expand it later.
124
Chapter 4 Configuring DPM 1801
It can be used to create a new Storage Pool with Storage Spaces, create a Virtual Disk, Prepare
and format the disk getting it ready for the DPM 1801 Console and to be used as DPM Modern
Storage.
#Variables
Function Create-DPMModernStorage {
param
(
[string]$VMName,
[string]$GuestOSName
$DomainCred = Get-Credential
$Pool1 = "DPM Storage Pool"
$VD1 = "Simple DPM vDisk01"
#$VMName = 'DPM01'
icm -VMName $VMName -Credential $DomainCred {
$VMName
Write-Output -InputObject "[$($VMName)]:: Defining the Variables"
$Pool1 = "DPM Storage Pool"
Write-Output -InputObject "[$($VMName)]:: Pool Name = $($Pool1)"
$VD1 = "Simple DPM vDisk01"
Write-Output -InputObject "[$($VMName)]:: Virtual Disk Name = $($VD1)"
Write-Output -InputObject "[$($VMName)]:: Checking the Drives and the Disk
SubSystem"
Get-PhysicalDisk | FT
Get-StorageSubSystem | FT
Write-Output -InputObject "[$($VMName)]:: Creating the Storage Pool"
New-StoragePool -FriendlyName $Pool1 -StorageSubSystemFriendlyName "Windows
Storage*" -PhysicalDisks (Get-PhysicalDisk -CanPool $True)
Get-StoragePool $Pool1 | Get-PhysicalDisk | Sort Size | FT FriendlyName, Size,
MediaType, HealthStatus, OperationalStatus -AutoSize
125
Chapter 4 Configuring DPM 1801
126
Chapter 4 Configuring DPM 1801
Running Create-DPMModernStorage.PS1
6.
127
Chapter 4 Configuring DPM 1801
Credential
128
Chapter 4 Configuring DPM 1801
129
Chapter 4 Configuring DPM 1801
130
Chapter 4 Configuring DPM 1801
1. Logon to DPM01 as
MVPDays\Administrator
3. In the DPM
Management console >
Disk Storage, click
Rescan.
131
Chapter 4 Configuring DPM 1801
132
Chapter 4 Configuring DPM 1801
8.
TBD…
133
Chapter 4 Configuring DPM 1801
134
Chapter 4 Configuring DPM 1801
135
Chapter 5 Protecting Workloads with DPM
Chapter 5
136
Chapter 5 Protecting Workloads with DPM
Backup Exchange
Backup SharePoint
Backup VMWare
137
Chapter 6 Backing up to Azure
Chapter 6
Backing up to Azure
Configure DPM to backup using Azure
Backup
138
Chapter 7 DPM Reporting and Monitoring
Chapter 7
Chapter6
Live Presentations
Dave frequently speaks at Microsoft conferences around North America, such as TechEd,
VeeamOn, TechDays, and MVPDays Community Roadshow.
www.checkyourlogs.net
www.mvpdays.com
139
Chapter6 Meet great MVP’s like this in person
Video Training
For video-based training, see the following site:
www.mvpdays.com
www.truesec.com
www.checkyourlogs.net
Consulting Services
Dave and Cristal have worked with some of the largest companies in the world and have a
wealth of experience and expertise. Customer engagements are typically between two weeks
and six months.
140
Chapter6 Meet great MVP’s like this in person
Twitter
Dave, Cristal, Allan, Cary on Twitter tweet on the following aliases:
141