Files
powerwall/esxi-scripts/host-maintenance_mode.ps1
2023-10-31 22:52:42 -05:00

8 lines
225 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
Get-VMHost -Name $args[0] | set-vmhost -State Maintenance