Update SVSTaskGate.ps1

This commit is contained in:
2025-01-05 00:29:52 -05:00
parent fa255c1cec
commit 7c55550a1b

View File

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