Update SVSTaskGate.ps1
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user