This commit is contained in:
2024-01-24 18:00:00 -06:00
parent 24bce9e8f5
commit e6f4694be5
2 changed files with 4 additions and 4 deletions

View File

@@ -2,8 +2,8 @@
. /opt/idssys/powerwall/settings.ps1
$ESXI = Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
Get-VMHost -Name $args[0] | set-vmhost -State Maintenance -Evacuate
Disconnect-VIServer $ESXI -Confirm:$false
Disconnect-VIServer -Server $VCENTERHOST -Force Confirm:$false