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