diff --git a/esxi-scripts/set-drs.ps1 b/esxi-scripts/set-drs.ps1 index f5a5f815..3e691020 100755 --- a/esxi-scripts/set-drs.ps1 +++ b/esxi-scripts/set-drs.ps1 @@ -17,5 +17,7 @@ $cluster_ID= Get-Cluster -Name "iDS-Cluster" $_this = Get-View -Id $cluster_ID.Id $_this.ReconfigureComputeResource_Task($spec, $true) +Get-Cluster -Name "iDS-Cluster" | Get-DrsRecommendation | Invoke-DrsRecommendation + Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false \ No newline at end of file