Datasheet

30 CHAPTER 1
AUTOMATING VCENTER SERVER DEPLOYMENT AND CONFIGURATION
.DESCRIPTION
This function will allow you to configure
DPM on an existing vCenter Server cluster
.NOTES
Source: Automating vSphere Administration
Authors: Luc Dekens, Arnim van Lieshout, Jonathan Medd,
Alan Renouf, Glenn Sizemore
.PARAMETER Cluster
The cluster on which to set DPM configuration
.PARAMETER Behavior
DPM Behavior, this can be set to “off”, “manual”
or “Automated”, by default it is “off”
.EXAMPLE 1
PS> Set-DPM -Cluster “Cluster01” -Behavior “Automated”
#>
param(
[String]$Cluster,
[String]$Behavior
)
Process {
switch ($Behavior) {
“Off” {
$DPMBehavior = “Automated”
$Enabled = $false
}
“Automated” {
$DPMBehavior = “Automated”
$Enabled = $true
}
“Manual” {
$DPMBehavior = “Manual”
$Enabled = $true
}
default {
$DPMBehavior = “Automated”
$Enabled = $false
}
}
890790c01.indd 30890790c01.indd 30 3/3/11 10:22:16 AM3/3/11 10:22:16 AM