Update disable-system-vms.ps1
This commit is contained in:
1 parent
694f6a9347
commit
788f17752f
1 file changed
+2
-1
@@ -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