Update disable-system-vms.ps1
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user