Update SVSTaskGate.ps1
This commit is contained in:
@@ -865,20 +865,8 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"/installrmm" {
|
"/installrmm" {
|
||||||
if ($request.HttpMethod -eq "POST") {
|
if ($request.HttpMethod -eq "GET") {
|
||||||
# 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
|
$bodyStream = New-Object IO.StreamReader $request.InputStream
|
||||||
$body = $bodyStream.ReadToEnd()
|
$body = $bodyStream.ReadToEnd()
|
||||||
$selectedSite = ConvertFrom-Json $body
|
$selectedSite = ConvertFrom-Json $body
|
||||||
@@ -924,7 +912,7 @@ try {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#>
|
|
||||||
|
|
||||||
"/setSVSPowerplan" {
|
"/setSVSPowerplan" {
|
||||||
if ($request.HttpMethod -eq "GET") {
|
if ($request.HttpMethod -eq "GET") {
|
||||||
|
|||||||
Reference in New Issue
Block a user