This commit is contained in:
2024-01-24 20:15:20 -06:00
parent e8ea7d9764
commit 694f6a9347
2 changed files with 10 additions and 2 deletions

View File

@@ -13,10 +13,9 @@ $spec.DrsConfig.Option[0] = New-Object VMware.Vim.OptionValue
$spec.DrsConfig.Option[0].Key = 'MaxVcpusPerCore'
$spec.DrsConfig.Option[0].Value = $args[0]
$modify = $true
$cluster_ID= Get-Cluster -Name "iDS-Cluster"
$_this = Get-View -Id $cluster_ID.Id
$_this.ReconfigureComputeResource_Task($spec, $modify)
$_this.ReconfigureComputeResource_Task($spec, $true)
Disconnect-VIServer -Server $VCENTERHOST -Force Confirm:$false