Update SVSTaskGate.ps1

This commit is contained in:
2025-01-04 00:34:31 -05:00
parent 918ff6dfca
commit 819137d05f

View File

@@ -501,6 +501,10 @@ function GetHtmlContent {
<input type="checkbox" id="selectAllOnboardCheckbox" onclick="toggleOnboardCheckboxes(this)">
Select All
</label>
<label>
<input type="checkbox" name="installSVSMSPModule" id="installSVSMSPModuleCheckbox">
Install SVSMSP Module
</label>
<label>
<input type="checkbox" name="setSVSPowerplan" id="installSVSPowerplanCheckbox">
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");