Update SVSTaskGate.ps1
This commit is contained in:
@@ -499,6 +499,10 @@ function GetHtmlContent {
|
||||
<input type="checkbox" id="selectAllOnboardCheckbox" onclick="toggleOnboardCheckboxes(this)">
|
||||
Select All
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="setSVSPowerplan" id="installSVSPowerplanCheckbox">
|
||||
Set SVS Powerplan
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="installCyberQP" id="installCyberQPCheckbox">
|
||||
Install CyberQP
|
||||
@@ -531,11 +535,11 @@ function GetHtmlContent {
|
||||
<div id="dattoRMMOptionsContainer" style="display:none; padding-left: 20px;">
|
||||
<label>
|
||||
<input type="checkbox" name="dattoRMMOption" value="inputVar">
|
||||
Install InputVar
|
||||
Copy Site Variables
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="dattoRMMOption" value="rmm">
|
||||
Install RMM
|
||||
Install DRMM Agent
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" name="dattoRMMOption" value="exe">
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user