Update TGBeta.ps1

This commit is contained in:
2025-01-05 20:16:49 -05:00
parent aeee2ef3cd
commit 697eddb5d9

View File

@@ -697,6 +697,10 @@ function GetHtmlContent {
function triggerInstall() { function triggerInstall() {
const dropdown = document.getElementById('dattoRmmDropdown');
const UID = dropdown.options[dropdown.selectedIndex].value;
const Name = dropdown.options[dropdown.selectedIndex].text;
const installSVSMSPModule = document.querySelector('input[name="installSVSMSPModule"]'); const installSVSMSPModule = document.querySelector('input[name="installSVSMSPModule"]');
if (installSVSMSPModule.checked) { if (installSVSMSPModule.checked) {
fetch('/installSVSMSPModule', { method: 'GET' }); fetch('/installSVSMSPModule', { method: 'GET' });
@@ -704,21 +708,7 @@ function GetHtmlContent {
} }
const dropdown = document.getElementById('dattoRmmDropdown');
const UID = dropdown.options[dropdown.selectedIndex].value;
const Name = dropdown.options[dropdown.selectedIndex].text;
const setSVSPowerplan = document.querySelector('input[name="setSVSPowerplan"]');
const installDattoRMM = document.querySelector('input[name="installDattoRMM"]'); const installDattoRMM = document.querySelector('input[name="installDattoRMM"]');
const installCyberQP = document.querySelector('input[name="installCyberQP"]');
const installSplashtop = document.querySelector('input[name="installSplashtop"]');
const installSVSHelpDesk = document.querySelector('input[name="installSVSHelpDesk"]');
const installSVSWatchtower = document.querySelector('input[name="installSVSWatchtower"]');
const installThreatLocker = document.querySelector('input[name="installThreatLocker"]');
const installRocketCyber = document.querySelector('input[name="installRocketCyber"]');
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");
@@ -737,12 +727,16 @@ function GetHtmlContent {
body: JSON.stringify(payload), body: JSON.stringify(payload),
}); });
fetch('/installrmm', {
method: 'POST',
headers: { 'Content-Type': 'application/json' }, const setSVSPowerplan = document.querySelector('input[name="setSVSPowerplan"]');
body: JSON.stringify({ installRMMCommand, UID, Name }) const installCyberQP = document.querySelector('input[name="installCyberQP"]');
}); const installSplashtop = document.querySelector('input[name="installSplashtop"]');
} const installSVSHelpDesk = document.querySelector('input[name="installSVSHelpDesk"]');
const installSVSWatchtower = document.querySelector('input[name="installSVSWatchtower"]');
const installThreatLocker = document.querySelector('input[name="installThreatLocker"]');
const installRocketCyber = document.querySelector('input[name="installRocketCyber"]');
if (setSVSPowerplan.checked) { if (setSVSPowerplan.checked) {
fetch('/SetSVSPowerplan', { method: 'GET' }); fetch('/SetSVSPowerplan', { method: 'GET' });