diff --git a/SVSTaskGate.ps1 b/SVSTaskGate.ps1 index 0fe5de3..a9974c1 100644 --- a/SVSTaskGate.ps1 +++ b/SVSTaskGate.ps1 @@ -499,6 +499,10 @@ function GetHtmlContent { Select All + + + Set SVS Powerplan + Install CyberQP @@ -531,11 +535,11 @@ function GetHtmlContent { - Install InputVar + Copy Site Variables - Install RMM + Install DRMM Agent @@ -706,6 +710,11 @@ function GetHtmlContent { }); } + if (document.querySelector('input[name="setSVSPowerplan"]').checked) { + fetch('/installSVSPowerplan', { method: 'GET' }); + appendLog("Setting SVS Powerplan", "cyan"); + } + if (installCyberQP.checked) { fetch('/installCyberQP', { method: 'GET' }); appendLog("Installing CyberQP", "cyan"); @@ -848,6 +857,19 @@ try { } } + "/setSVSPowerplan" { + if ($request.HttpMethod -eq "GET") { + Set-SVSPowerPlan + } + $responseString = "Install SVS Powerplan triggered." + $buffer = [System.Text.Encoding]::UTF8.GetBytes($responseString) + $response.ContentType = "text/plain" + $response.ContentLength64 = $buffer.Length + $response.OutputStream.Write($buffer, 0, $buffer.Length) + $response.OutputStream.Close() + } + + "/installCyberQP" { if ($request.HttpMethod -eq "GET") { Install-CyberQP