From e8826211c91e35347e8b77631abb53e51fafbbb1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 17 Sep 2024 17:52:32 -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 65d7906e..1fc07c6d 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 '*RustDesk Server*' -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-Node2*' -or $_.Name -like '*LB-Node2*'} | 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 88817ea5..d39b7256 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 '*RustDesk Server*' -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-Node2*' -or $_.Name -like '*LB-Node2*'} | Where {$_.PowerState -notlike '*On*' -and $_.Name -notlike '*Offsite-Backups*'} | Start-VM -Confirm:$false Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false