10 lines
320 B
PowerShell
Executable File
10 lines
320 B
PowerShell
Executable File
#!/usr/bin/env pwsh
|
||
|
||
. /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;
|
||
|
||
Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false |