diff --git a/SVSTaskGate.ps1 b/SVSTaskGate.ps1 index fc44b03..7817ee2 100644 --- a/SVSTaskGate.ps1 +++ b/SVSTaskGate.ps1 @@ -501,6 +501,10 @@ function GetHtmlContent { Select All + + + Install SVSMSP Module + Set SVS Powerplan @@ -688,6 +692,26 @@ function GetHtmlContent { const installThreatLocker = document.querySelector('input[name="installThreatlocker"]'); const installRocketCyber = document.querySelector('input[name="installRocketCyber"]'); + if (installSVSMSPModule) { + appendLog("Installing SVSMSP Module...", "cyan"); + fetch('/installsvsmspmodule', { method: 'GET' }) + .then(response => { + if (!response.ok) { + throw new Error(`Failed to install SVSMSP Module. Server responded with status ${response.status}`); + } + return response.text(); + }) + .then(data => { + console.log('SVSMSP Module Installation Request Sent:', data); + appendLog("SVSMSP Module installed successfully.", "green"); + }) + .catch(error => { + console.error('Error:', error); + appendLog(`Error installing SVSMSP Module: ${error.message}`, "red"); + }); + } + + if (installDattoRMM.checked) { const DattoRMMCheckbox = document.querySelectorAll('input[name="dattoRMMOption"]:checked'); appendLog("Installing selected site RMM...", "cyan");