#Autentification et connection au vCenter

$credentialvCenter = Get-Credential administrator@vsphere.local
$vc = Connect-VIServer -Server vcsa.vmware.lab -Credential $credentialvCenter

# recupération du Nom du Cluster
$Cluster= Get-Cluster -Name PowerCLI-HA
$NewClustername = $Cluster.Name + '-DRS'

#Changement du nom du CLuster
Get-Cluster -Name $Cluster | Set-Cluster -Name $NewClustername -DrsAutomationLevel "FullyAutomated" -Confirm:$false