Update SVSTaskGate.ps1

This commit is contained in:
2025-01-05 01:55:21 -05:00
parent ee549e5949
commit 07fbc4b094

View File

@@ -701,7 +701,13 @@ function GetHtmlContent {
const checkedValues = Array.from(DattoRMMCheckbox).map(c => c.value); const checkedValues = Array.from(DattoRMMCheckbox).map(c => c.value);
let installRMMCommand = 'Install-DattoRMM -ApiUrl $ApiUrl -ApiKey $ApiKey -ApiSecretKey $ApiSecretKey'; // Predefined PowerShell global variables passed into JavaScript
const ApiUrl = "$global:ApiUrl";
const ApiKey = "$global:ApiKey";
const ApiSecretKey = "$global:ApiSecretKey";
let installRMMCommand = `Install-DattoRMM -ApiUrl '${ApiUrl}' -ApiKey '${ApiKey}' -ApiSecretKey '${ApiSecretKey}'`;
if (checkedValues.includes('inputVar')) { if (checkedValues.includes('inputVar')) {
installRMMCommand += ' -PushSiteVars'; installRMMCommand += ' -PushSiteVars';