8 lines
214 B
PowerShell
Executable File
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
|