Update SVSTaskGate.ps1
This commit is contained in:
@@ -709,66 +709,61 @@ function GetHtmlContent {
|
||||
const installThreatLocker = document.querySelector('input[name="installThreatLocker"]');
|
||||
const installRocketCyber = document.querySelector('input[name="installRocketCyber"]');
|
||||
|
||||
// Priority 1: Install SVSMSP Module
|
||||
if (installSVSMSPModule.checked) {
|
||||
appendLog("Installing SVSMSP Module (Priority 1)...", "cyan");
|
||||
fetch('/installSVSMSPModule', { method: 'GET' })
|
||||
}
|
||||
|
||||
// Priority 2: Install DattoRMM
|
||||
if (installDattoRMM.checked) {
|
||||
const DattoRMMCheckbox = document.querySelectorAll('input[name="dattoRMMOption"]:checked');
|
||||
appendLog("Installing selected site RMM...", "cyan");
|
||||
appendLog("Installing selected site RMM (Priority 2)...", "cyan");
|
||||
|
||||
const checkedValues = Array.from(DattoRMMCheckbox).map(c => c.value);
|
||||
|
||||
|
||||
const payload = {
|
||||
checkedValues, // Array of selected checkbox values
|
||||
UID, // Selected site UID
|
||||
Name, // Selected site name
|
||||
UID, // Selected site UID
|
||||
Name // Selected site name
|
||||
};
|
||||
|
||||
fetch('/installrmm', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify(payload),
|
||||
});
|
||||
|
||||
fetch('/installrmm', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ installRMMCommand, UID, Name })
|
||||
});
|
||||
body: JSON.stringify(payload)
|
||||
})
|
||||
}
|
||||
|
||||
// Lower-priority tasks
|
||||
if (setSVSPowerplan.checked) {
|
||||
fetch('/SetSVSPowerplan', { method: 'GET' });
|
||||
appendLog("Setting SVS Powerplan", "cyan");
|
||||
}
|
||||
|
||||
if (installSVSMSPModule.checked) {
|
||||
fetch('/installSVSMSPModule', { method: 'GET' });
|
||||
appendLog("Installing CyberQP", "cyan");
|
||||
|
||||
fetch('/SetSVSPowerplan', { method: 'GET' })
|
||||
}
|
||||
|
||||
if (installCyberQP.checked) {
|
||||
fetch('/installCyberQP', { method: 'GET' });
|
||||
appendLog("Installing CyberQP", "cyan");
|
||||
fetch('/installCyberQP', { method: 'GET' })
|
||||
}
|
||||
|
||||
if (installSplashtop.checked) {
|
||||
fetch('/installSplashtop', { method: 'GET' });
|
||||
appendLog("Installing Splashtop", "cyan");
|
||||
fetch('/installSplashtop', { method: 'GET' })
|
||||
}
|
||||
|
||||
if (installSVSHelpDesk.checked) {
|
||||
fetch('/installSVSHelpDesk', { method: 'GET' });
|
||||
appendLog("Installing SVSHelpdesk", "cyan");
|
||||
fetch('/installSVSHelpDesk', { method: 'GET' })
|
||||
}
|
||||
|
||||
if (installSVSWatchtower.checked) {
|
||||
fetch('/installSVSWatchtower', { method: 'GET' });
|
||||
appendLog("Installing SVSWatchtower", "cyan");
|
||||
fetch('/installSVSWatchtower', { method: 'GET' })
|
||||
}
|
||||
|
||||
if (installThreatLocker.checked) {
|
||||
fetch('/installThreatLocker', { method: 'GET' });
|
||||
appendLog("Installing ThreatLocker", "cyan");
|
||||
fetch('/installThreatLocker', { method: 'GET' })
|
||||
}
|
||||
|
||||
if (installRocketCyber.checked) {
|
||||
fetch('/installRocketCyber', { method: 'GET' });
|
||||
appendLog("Installing RocketCyber", "cyan");
|
||||
fetch('/installRocketCyber', { method: 'GET' })
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function endSession() {
|
||||
|
||||
Reference in New Issue
Block a user