Update set-drs.ps1

This commit is contained in:
2024-01-25 08:35:21 -06:00
parent b32c6b2e53
commit 8a6b0e5257

View File

@@ -17,7 +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
Get-Cluster -Name "iDS-Cluster" | Get-DrsRecommendation -Refresh | Invoke-DrsRecommendation
Disconnect-VIServer -Server $VCENTERHOST -Force Confirm:$false