This commit is contained in:
voltron committed 2024-01-24 21:18:15 -06:00
1 parent 788f17752f
commit 873f679bdf
4 files changed
+22 -21

No files matched your search

+3 -2
View File
@@ -1,10 +1,11 @@
#!/usr/bin/env pwsh
### NOT WORKING ###
. /opt/idssys/powerwall/settings.ps1
Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
$vm = Get-VM "System VMs (S)"
Set-DrsRule -Rule $affinityRule -VM $vm -Enabled $false;
Set-DrsRule -Rule 'System VMs (S)' -Enabled $false;
Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false