This section provides sample scripts for PowerCLI with basic and advanced tasks in compute cluster administration. What to read next Create and Modify Advanced Settings for a ClusterYou can customize the behavior of a cluster on a vCenter Server system by creating and modifying custom advanced settings for it. Create a New VM-VM DRS Rule You can create a VM-VM DRS affinity rule within a cluster. Create a New VM-VMHost DRS Rule You can create a VM-VMHost DRS rule within a cluster after creating a VM DRS cluster group and a VMHost DRS cluster group. Parent topic: Managing vSphere with VMware PowerCLI