From 7c55550a1bdbdd0ce888e81307d4092377eca151 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Sun, 5 Jan 2025 00:29:52 -0500 Subject: [PATCH] Update SVSTaskGate.ps1 --- SVSTaskGate.ps1 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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) }); }