Update TGBeta.ps1

This commit is contained in:
2025-01-05 19:12:39 -05:00
parent fa7547d8dd
commit e8fc6aa46e

View File

@@ -9,7 +9,6 @@
### checkbox not working ### checkbox not working
### Threatlocker ### Threatlocker
### setsvspowerplan
### add tweek to set default provider, add to toolkit? ### add tweek to set default provider, add to toolkit?
### need to see if there's anything else we could take from Theo script? ### need to see if there's anything else we could take from Theo script?
@@ -181,7 +180,7 @@ function Install-SVSMSP {
"Install-CyberQP", "Install-CyberQP",
"Install-RocketCyber", "Install-RocketCyber",
"Install-Splashtop", "Install-Splashtop",
"Install-Threatlocker" "Install-ThreatLocker"
), ),
# Log file path # Log file path
@@ -711,7 +710,7 @@ function GetHtmlContent {
const installSplashtop = document.querySelector('input[name="installSplashtop"]'); const installSplashtop = document.querySelector('input[name="installSplashtop"]');
const installSVSHelpDesk = document.querySelector('input[name="installSVSHelpDesk"]'); const installSVSHelpDesk = document.querySelector('input[name="installSVSHelpDesk"]');
const installSVSWatchtower = document.querySelector('input[name="installSVSWatchtower"]'); const installSVSWatchtower = document.querySelector('input[name="installSVSWatchtower"]');
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 (installDattoRMM.checked) { if (installDattoRMM.checked) {
@@ -1013,11 +1012,11 @@ try {
$response.OutputStream.Close() $response.OutputStream.Close()
} }
"/installThreatlocker" { "/installThreatLocker" {
if ($request.HttpMethod -eq "GET") { if ($request.HttpMethod -eq "GET") {
Install-Threatlocker Install-ThreatLocker
} }
$responseString = "Install Threatlocker triggered." $responseString = "Install ThreatLocker triggered."
$buffer = [System.Text.Encoding]::UTF8.GetBytes($responseString) $buffer = [System.Text.Encoding]::UTF8.GetBytes($responseString)
$response.ContentType = "text/plain" $response.ContentType = "text/plain"
$response.ContentLength64 = $buffer.Length $response.ContentLength64 = $buffer.Length