Update SVSTaskGate.ps1
This commit is contained in:
@@ -501,6 +501,10 @@ function GetHtmlContent {
|
|||||||
<input type="checkbox" id="selectAllOnboardCheckbox" onclick="toggleOnboardCheckboxes(this)">
|
<input type="checkbox" id="selectAllOnboardCheckbox" onclick="toggleOnboardCheckboxes(this)">
|
||||||
Select All
|
Select All
|
||||||
</label>
|
</label>
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" name="installSVSMSPModule" id="installSVSMSPModuleCheckbox">
|
||||||
|
Install SVSMSP Module
|
||||||
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" name="setSVSPowerplan" id="installSVSPowerplanCheckbox">
|
<input type="checkbox" name="setSVSPowerplan" id="installSVSPowerplanCheckbox">
|
||||||
Set SVS Powerplan
|
Set SVS Powerplan
|
||||||
@@ -688,6 +692,26 @@ function GetHtmlContent {
|
|||||||
const installThreatLocker = document.querySelector('input[name="installThreatlocker"]');
|
const installThreatLocker = document.querySelector('input[name="installThreatlocker"]');
|
||||||
const installRocketCyber = document.querySelector('input[name="installRocketCyber"]');
|
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) {
|
if (installDattoRMM.checked) {
|
||||||
const DattoRMMCheckbox = document.querySelectorAll('input[name="dattoRMMOption"]:checked');
|
const DattoRMMCheckbox = document.querySelectorAll('input[name="dattoRMMOption"]:checked');
|
||||||
appendLog("Installing selected site RMM...", "cyan");
|
appendLog("Installing selected site RMM...", "cyan");
|
||||||
|
|||||||
Reference in New Issue
Block a user