Update SVSTaskGate.ps1

This commit is contained in:
2025-01-05 00:37:48 -05:00
parent fae0d84369
commit 9e4d6b91a9

View File

@@ -864,8 +864,19 @@ try {
}
}
"/installrmm" {
if ($request.HttpMethod -eq "POST") {
# Parse the received JSON
$bodyStream = New-Object IO.StreamReader $request.InputStream
$body = $bodyStream.ReadToEnd()
$selectedSite = ConvertFrom-Json $body
Invoke-Expression $selectedSite.installRMMCommand
}
}
<#
"/installrmm" {
if ($request.HttpMethod -eq "POST") {
$bodyStream = New-Object IO.StreamReader $request.InputStream
@@ -913,7 +924,7 @@ try {
}
}
#>
"/setSVSPowerplan" {
if ($request.HttpMethod -eq "GET") {