From 26f6f2da9ac35584da983d248e1b654dc1189c10 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 20 Oct 2024 15:09:35 -0500 Subject: [PATCH] update --- esxi-scripts/cooldown.overnight.ps1 | 2 +- esxi-scripts/coolup.overnight.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/esxi-scripts/cooldown.overnight.ps1 b/esxi-scripts/cooldown.overnight.ps1 index 1fc07c6d..f2d8cc91 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-Node2*' -or $_.Name -like '*LB-Node2*'} | 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*'} | 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 d39b7256..92891c3c 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-Node2*' -or $_.Name -like '*LB-Node2*'} | 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*'} | Start-VM -Confirm:$false Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false