Update SVSTaskGate.ps1

This commit is contained in:
2025-01-05 18:50:46 -05:00
parent 83355a8949
commit 38840f7366

View File

@@ -913,12 +913,12 @@ try {
$installRMMCommand += " -SaveCopy" $installRMMCommand += " -SaveCopy"
} }
Write-LogHybrid -Message "Constructed Command: $installRMMCommand for UID: $UID, Name: $Name" -Level "Info"
# Step 5: Execute the Command # Step 5: Execute the Command
try { try {
Invoke-Expression $installRMMCommand 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" Write-LogHybrid -Message $responseString -Level "Success"
$response.StatusCode = 200 $response.StatusCode = 200
} catch { } catch {