Update testTaskGate.ps1
This commit is contained in:
@@ -27,7 +27,7 @@ $Port = 8082
|
||||
|
||||
$Global:Tasks = @(
|
||||
# On-Boarding, left column
|
||||
@{ Id='setSVSPowerplan'; Name='setSVSPowerplan'; Label='Set SVS Powerplan'; HandlerFn='Set-SVSPowerPlan'; Page='onboard'; Column='left' },
|
||||
@{ Id='setSVSPowerplan'; Name='setSVSPowerplan'; Label='Set SVS Powerplan'; HandlerFn='Handle-SVSPowerPlan'; Page='onboard'; Column='left' },
|
||||
@{ Id='installSVSMSPModule'; Name='installSVSMSPModule'; Label='Install SVSMSP Module'; HandlerFn='Install-SVSMSPModule'; Page='onboard'; Column='left' },
|
||||
@{ Id='installCyberQP'; Name='installCyberQP'; Label='Install CyberQP'; HandlerFn='Install-CyberQP'; Page='onboard'; Column='left' },
|
||||
@{ Id='installSplashtop'; Name='installSplashtop'; Label='Install Splashtop'; HandlerFn='Install-Splashtop'; Page='onboard'; Column='left' },
|
||||
@@ -344,11 +344,17 @@ function returnRespondEmpty {
|
||||
|
||||
|
||||
# On-boarding handlers
|
||||
function Set-SVSPowerPlan {
|
||||
function Handle-SetSVSPowerPlan {
|
||||
param($Context)
|
||||
|
||||
# 1) call into your module
|
||||
Set-SVSPowerPlan
|
||||
|
||||
# 2) log & write back a simple text response
|
||||
Write-LogHybrid "PowerPlan set" "Success" "OnBoard"
|
||||
Respond-Text $Context "Powerplan applied"
|
||||
Respond-Text $Context "PowerPlan applied"
|
||||
}
|
||||
|
||||
function Install-SVSMSPModule {
|
||||
param($Context)
|
||||
Write-LogHybrid "HTTP trigger: Install-SVSMSPModule" "Info" "OnBoard"
|
||||
|
||||
Reference in New Issue
Block a user