11 lines
311 B
PowerShell
Executable File
11 lines
311 B
PowerShell
Executable File
#!/usr/bin/env pwsh
|
||
|
||
### NOT WORKING ###
|
||
|
||
. /opt/idssys/powerwall/conf/settings.ps1
|
||
|
||
Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
|
||
|
||
Set-DrsRule -Rule 'System VMs (S)' -Enabled $false;
|
||
|
||
Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false |