Update SVSTaskGate.ps1
This commit is contained in:
@@ -913,12 +913,12 @@ try {
|
||||
$installRMMCommand += " -SaveCopy"
|
||||
}
|
||||
|
||||
Write-LogHybrid -Message "Constructed Command: $installRMMCommand for UID: $UID, Name: $Name" -Level "Info"
|
||||
|
||||
|
||||
# Step 5: Execute the Command
|
||||
try {
|
||||
Invoke-Expression $installRMMCommand
|
||||
$responseString = "RMM installation triggered successfully for UID: $UID, Name: $Name."
|
||||
$responseString = "RMM installation triggered successfully for $Name."
|
||||
Write-LogHybrid -Message $responseString -Level "Success"
|
||||
$response.StatusCode = 200
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user