Update TGBeta.ps1
This commit is contained in:
33
TGBeta.ps1
33
TGBeta.ps1
@@ -994,7 +994,6 @@ function GetHtmlContent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function triggerInstall() {
|
function triggerInstall() {
|
||||||
const dropdown = document.getElementById('dattoRmmDropdown');
|
const dropdown = document.getElementById('dattoRmmDropdown');
|
||||||
const UID = dropdown && dropdown.options[dropdown.selectedIndex]
|
const UID = dropdown && dropdown.options[dropdown.selectedIndex]
|
||||||
@@ -1012,11 +1011,10 @@ function GetHtmlContent {
|
|||||||
await fetch('/installSVSMSPModule', { method: 'GET' });
|
await fetch('/installSVSMSPModule', { method: 'GET' });
|
||||||
appendLog("SVSMSP Module installation completed.", "green");
|
appendLog("SVSMSP Module installation completed.", "green");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
appendLog("Error installing SVSMS", "red");
|
appendLog("Error installing SVSMSP Module: " + error.message, "red");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Priority 2: Install DattoRMM
|
// Priority 2: Install DattoRMM
|
||||||
if (document.querySelector('input[name="installDattoRMM"]').checked) {
|
if (document.querySelector('input[name="installDattoRMM"]').checked) {
|
||||||
appendLog("Installing DattoRMM (Priority 2)...", "cyan");
|
appendLog("Installing DattoRMM (Priority 2)...", "cyan");
|
||||||
@@ -1037,11 +1035,10 @@ function GetHtmlContent {
|
|||||||
});
|
});
|
||||||
appendLog("DattoRMM installation completed.", "green");
|
appendLog("DattoRMM installation completed.", "green");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
appendLog("Error installing DattoRMM: ${error.message}", "red");
|
appendLog("Error installing DattoRMM: " + error.message, "red");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Priority 3: Other tasks
|
// Priority 3: Other tasks
|
||||||
if (document.querySelector('input[name="setSVSPowerplan"]').checked) {
|
if (document.querySelector('input[name="setSVSPowerplan"]').checked) {
|
||||||
appendLog("Setting SVS Powerplan (Priority 3)...", "cyan");
|
appendLog("Setting SVS Powerplan (Priority 3)...", "cyan");
|
||||||
@@ -1049,7 +1046,7 @@ function GetHtmlContent {
|
|||||||
await fetch('/SetSVSPowerplan', { method: 'GET' });
|
await fetch('/SetSVSPowerplan', { method: 'GET' });
|
||||||
appendLog("SVS Powerplan set successfully.", "green");
|
appendLog("SVS Powerplan set successfully.", "green");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
appendLog("Error setting SVS Powerplan: ${error.message}", "red");
|
appendLog("Error setting SVS Powerplan: " + error.message, "red");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1059,7 +1056,7 @@ function GetHtmlContent {
|
|||||||
await fetch('/installCyberQP', { method: 'GET' });
|
await fetch('/installCyberQP', { method: 'GET' });
|
||||||
appendLog("CyberQP installation completed.", "green");
|
appendLog("CyberQP installation completed.", "green");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
appendLog("Error installing CyberQP: ${error.message}", "red");
|
appendLog("Error installing CyberQP: " + error.message, "red");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1069,7 +1066,7 @@ function GetHtmlContent {
|
|||||||
await fetch('/installSplashtop', { method: 'GET' });
|
await fetch('/installSplashtop', { method: 'GET' });
|
||||||
appendLog("Splashtop installation completed.", "green");
|
appendLog("Splashtop installation completed.", "green");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
appendLog("Error installing Splashtop: ${error.message}", "red");
|
appendLog("Error installing Splashtop: " + error.message, "red");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1079,7 +1076,7 @@ function GetHtmlContent {
|
|||||||
await fetch('/installSVSHelpDesk', { method: 'GET' });
|
await fetch('/installSVSHelpDesk', { method: 'GET' });
|
||||||
appendLog("SVS HelpDesk installation completed.", "green");
|
appendLog("SVS HelpDesk installation completed.", "green");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
appendLog("Error installing SVS HelpDesk: ${error.message}", "red");
|
appendLog("Error installing SVS HelpDesk: " + error.message, "red");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1089,7 +1086,7 @@ function GetHtmlContent {
|
|||||||
await fetch('/installSVSWatchtower', { method: 'GET' });
|
await fetch('/installSVSWatchtower', { method: 'GET' });
|
||||||
appendLog("SVS Watchtower installation completed.", "green");
|
appendLog("SVS Watchtower installation completed.", "green");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
appendLog("Error installing SVS Watchtower: ${error.message}", "red");
|
appendLog("Error installing SVS Watchtower: " + error.message, "red");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1099,7 +1096,7 @@ function GetHtmlContent {
|
|||||||
await fetch('/installThreatLocker', { method: 'GET' });
|
await fetch('/installThreatLocker', { method: 'GET' });
|
||||||
appendLog("ThreatLocker installation completed.", "green");
|
appendLog("ThreatLocker installation completed.", "green");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
appendLog("Error installing ThreatLocker: ${error.message}", "red");
|
appendLog("Error installing ThreatLocker: " + error.message, "red");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1109,15 +1106,27 @@ function GetHtmlContent {
|
|||||||
await fetch('/installRocketCyber', { method: 'GET' });
|
await fetch('/installRocketCyber', { method: 'GET' });
|
||||||
appendLog("RocketCyber installation completed.", "green");
|
appendLog("RocketCyber installation completed.", "green");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
appendLog("Error installing RocketCyber: ${error.message}", "red");
|
appendLog("Error installing RocketCyber: " + error.message, "red");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NEW: Set Edge Default Search Engine
|
||||||
|
if (document.querySelector('input[name="setedgedefaultsearch"]').checked) {
|
||||||
|
appendLog("Setting Edge Default Search Engine (Priority 3)...", "cyan");
|
||||||
|
try {
|
||||||
|
await fetch('/setedgedefaultsearch', { method: 'GET' });
|
||||||
|
appendLog("Edge Default Search Engine set successfully.", "green");
|
||||||
|
} catch (error) {
|
||||||
|
appendLog("Error setting Edge Default Search Engine: " + error.message, "red");
|
||||||
|
}
|
||||||
|
}
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function endSession() {
|
function endSession() {
|
||||||
appendLog("Session ended. Closing application...", "yellow");
|
appendLog("Session ended. Closing application...", "yellow");
|
||||||
fetch('/quit', { method: 'GET' })
|
fetch('/quit', { method: 'GET' })
|
||||||
|
|||||||
Reference in New Issue
Block a user