This commit is contained in:
2023-05-15 17:25:36 -05:00
parent e7f2b0b029
commit 5bbfd44318
2 changed files with 2 additions and 2 deletions

View File

@@ -4,4 +4,4 @@
Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -Password $ESXiPassword
Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -like '*MySQL*' -and $_.Name -like '*PiHole*' -and $_.Name -like '*vCenter*'} | Suspend-VM
Get-VM | Where {$_.PowerState -like '*On*' -and ($_.Name -like '*MySQL*' -or $_.Name -like '*PiHole*' -or $_.Name -like '*vCenter*')} | Suspend-VM

View File

@@ -406,7 +406,7 @@ SHUTDOWN_SERVERS(){
for ESXIHOST in "${SYSHOSTS[@]}"; do
echo -en "Suspending DB, PiHole & vCenter VM's on: ${ESXIHOST} ... "
${FOLDER}/esxi-scripts/sys-suspend.ps1 ${ESXIHOST}
${FOLDER}/esxi-scripts/sys-suspend.ps1 ${ESXIHOST} >/dev/null 2>&1
echo "Done"
done
# for ESXIHOST in "${SYSHOSTS[@]}"; do