Files
powerwall/esxi-scripts/host-maintenance_mode.ps1
2023-09-15 21:27:21 -05:00

8 lines
228 B
PowerShell
Executable File

#!/usr/bin/env pwsh
. /opt/idssys/powerwall/settings.ps1
Connect-VIServer -Server $PW_VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
Get-VMHost -Name $args[0] | set-vmhost -State Maintenance