From b32c6b2e5359a65767822004a76cf4c888d0980e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 25 Jan 2024 08:30:47 -0600 Subject: [PATCH] Update set-drs.ps1 --- esxi-scripts/set-drs.ps1 | 2 ++ 1 file changed, 2 insertions(+) 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