From 4305b1248833bb23e24f18a3da425f051a4ff2ec Mon Sep 17 00:00:00 2001 From: syelle Date: Fri, 28 Nov 2025 21:01:06 -0500 Subject: [PATCH] all task completed message --- samy.js | 5 ++++- samy.ps1 | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/samy.js b/samy.js index 461b473..b59dfeb 100644 --- a/samy.js +++ b/samy.js @@ -29,7 +29,7 @@ function logProgress(label, isSuccess) { if (completedTasks === totalTasks) { const finalMsg = document.createElement("div"); finalMsg.style.marginTop = "10px"; - finalMsg.innerHTML = ` All tasks complete (${completedTasks}/${totalTasks})`; + finalMsg.innerHTML = ` All tasks completed (${completedTasks}/${totalTasks})`; statusBox?.appendChild(finalMsg); document.title = ` ScriptMonkey - Complete (${completedTasks}/${totalTasks})`; @@ -333,6 +333,9 @@ async function triggerInstall() { console.error("triggerInstall fatal error:", e); } finally { runBtn.disabled = false; + if (totalTasks > 0) { + console.info(`[Info] All tasks completed (${completedTasks}/${totalTasks})`); + } } } diff --git a/samy.ps1 b/samy.ps1 index 8b58cb6..31346a9 100644 --- a/samy.ps1 +++ b/samy.ps1 @@ -474,7 +474,7 @@ $ConfirmPreference = 'None' # After module install, repair Event Log binding for legacy systems Repair-SVSMspEventLogBinding -EventSource "SVSMSP_Module" -TargetLog "SVSMSP Events" - Write-LogHybrid "Toolkit installation complete." "Success" "SVSModule" -LogToEvent + Write-LogHybrid "Toolkit installation completed." "Success" "SVSModule" -LogToEvent } @@ -1475,8 +1475,8 @@ function Invoke-CleanupSVSMSP { # - Delete HKLM:\Software\SVS\Deployment (via Remove-SVSDeploymentRegKey) Install-SVSMSP -Cleanup - Write-LogHybrid "SVSMSP toolkit cleanup complete (module, repo, registry)." Success OffBoard -LogToEvent - Send-Text $Context "SVSMSP toolkit cleanup complete." + Write-LogHybrid "SVSMSP toolkit cleanup completed (module, repo, registry)." Success OffBoard -LogToEvent + Send-Text $Context "SVSMSP toolkit cleanup completed." } else { throw "Install-SVSMSP function not found in current session." } @@ -1845,7 +1845,7 @@ function Install-DattoRMM { } } - Write-LogHybrid "Headless offboarding complete" Success OffBoard -LogToEvent + Write-LogHybrid "Headless offboarding completed" Success OffBoard -LogToEvent return }