diff --git a/esxi-scripts/cooldown.overnight.ps1 b/esxi-scripts/cooldown.overnight.ps1 index f2d8cc91..d74ed2c5 100755 --- a/esxi-scripts/cooldown.overnight.ps1 +++ b/esxi-scripts/cooldown.overnight.ps1 @@ -3,7 +3,7 @@ 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 -like '*On*' -and $_.Name -notlike '*Offsite-Backups*'} | Shutdown-VMGuest -Confirm:$false +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 -like '*On*' -and $_.Name -notlike '*Offsite-Backups*' -and $_.Name -notlike '*_replica'} | Shutdown-VMGuest -Confirm:$false Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false diff --git a/esxi-scripts/coolup.overnight.ps1 b/esxi-scripts/coolup.overnight.ps1 index 92891c3c..c95b1614 100755 --- a/esxi-scripts/coolup.overnight.ps1 +++ b/esxi-scripts/coolup.overnight.ps1 @@ -3,7 +3,7 @@ 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*'} | Start-VM -Confirm:$false +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