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