Modifying the cluster settings

To modify the settings of a cluster, you can use the Set-Cluster cmdlet. This cmdlet has basically the same parameters as the New-Cluster cmdlet, with the addition of the -Profile parameter that enables you to associate a host profile with a cluster. The syntax of the Set-Cluster cmdlet is as follows:

Set-Cluster [-HARestartPriority <HARestartPriority>] [-HAIsolationResponse <HAIsolationResponse>] [-VMSwapfilePolicy <VMSwapfilePolicy>] [-Cluster] <Cluster[]> [[-Name] <String>] [-HAEnabled [<Boolean>]] [-HAAdmissionControlEnabled [<Boolean>]] [-HAFailoverLevel <Int32>] [-DrsEnabled [<Boolean>]] [-DrsMode <DrsMode>] [-DrsAutomationLevel <DrsAutomationLevel>] [-VsanEnabled [<Boolean>]] [-VsanDiskClaimMode <VsanDiskClaimMode>] ...

Get Learning PowerCLI - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.