Files
powerwall/esxi-scripts/host-maintenance_mode.ps1
2023-08-13 16:42:58 -05:00

8 lines
217 B
PowerShell
Executable File

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