From 8be5f11d2a016adb22001fd6aa1f6f744b7f6469 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Sat, 25 Jan 2025 18:32:02 -0500 Subject: [PATCH] Update TGBeta.ps1 --- TGBeta.ps1 | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/TGBeta.ps1 b/TGBeta.ps1 index a232c47..3363fb6 100644 --- a/TGBeta.ps1 +++ b/TGBeta.ps1 @@ -4,13 +4,11 @@ ### need RGB color codes form john ### add the .net silent install tweaks to toolkit ### for the reg tweak need to do/undo function maybe it should have it own check box list -### line 1502 need to proper command to uninstall svsmsp module - # changes ## tag line color ## added offboard check boxes for dattormm, dattodeb, rocketcyber, cyberQP, SVSWatchtower, SVSHelpdesk and Splashtop -## + #region Write-Log @@ -645,7 +643,7 @@ function GetHtmlContent { Download.exe - +

@@ -847,31 +845,9 @@ function GetHtmlContent { }); function triggerOffboard() { - const checkedCheckboxes = document - .querySelectorAll('#offboardTab input[type="checkbox"]:checked'); - - const selectedTasks = Array.from(checkedCheckboxes).map(checkbox => checkbox.name); - - if (selectedTasks.length === 0) { - appendLog("No offboarding tasks selected.", "yellow"); - return; - } - - selectedTasks.forEach(task => { - fetch(`/offboard/${task}`, { method: 'GET' }) - .then(response => { - if (!response.ok) { - throw new Error(`Failed to run task: ${task}`); - } - appendLog(`Successfully ran offboarding task: ${task}`, "green"); - }) - .catch(error => { - appendLog(`Error running offboarding task ${task}: ${error.message}`, "red"); - }); - }); + appendLog("testeteteteteteet") } - function toggleTweaksCheckboxes(selectAllCheckbox) { // Get all checkboxes inside the tweaksTab container const checkboxes = document @@ -1498,9 +1474,6 @@ try { $response.OutputStream.Close() } - - - "/runTweaks" { if ($request.HttpMethod -eq "POST") { try {