29 lines
580 B
PowerShell
Executable File
29 lines
580 B
PowerShell
Executable File
#!/usr/bin/env pwsh
|
||
. /opt/idssys/powerwall/conf/settings.ps1
|
||
|
||
Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
|
||
|
||
Get-VM | Where {$_.Name -like '*OMSA*' -or $_.Name -like '*MySQL-Manager*' -or $_.Name -like '*Webserver-Node1*' -or $_.Name -like '*MySQL-Node1*' -or $_.Name -like '*LB-Node1*'} | Where {$_.PowerState -notlike '*On*' -and $_.Name -notlike '*Offsite-Backups*' -and $_.Name -notlike '*_replica'} | Start-VM -Confirm:$false
|
||
|
||
Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|