diff --git a/SVSTaskGate.ps1 b/SVSTaskGate.ps1 index 8859f32..1e55b1f 100644 --- a/SVSTaskGate.ps1 +++ b/SVSTaskGate.ps1 @@ -711,11 +711,19 @@ function GetHtmlContent { if (checkedValues.includes('exe')) { installRMMCommand += ' -SaveCopy'; } + console.log("Final RMM Command:", installRMMCommand); + + // Now send this command in the JSON payload + const payload = { + installRMMCommand, + UID, + Name + }; fetch('/installrmm', { method: 'POST', headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ installRMMCommand, UID, Name }) + body: JSON.stringify(payload) }); }