Files
powerwall/esxi-scripts/host-maintenance_mode.ps1
2023-05-15 12:47:04 -05:00

8 lines
214 B
PowerShell
Executable File

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