Update disable-system-vms.ps1

This commit is contained in:
2024-01-24 20:17:15 -06:00
parent 694f6a9347
commit 788f17752f

View File

@@ -4,6 +4,7 @@
Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
Set-DrsRule -Rule "System VMs (S)" -Enabled $false;
$vm = Get-VM "System VMs (S)"
Set-DrsRule -Rule $affinityRule -VM $vm -Enabled $false;
Disconnect-VIServer -Server $VCENTERHOST -Force Confirm:$false