Update TGBeta.ps1

This commit is contained in:
2025-01-05 18:52:34 -05:00
parent 38840f7366
commit 30e0d01a76

View File

@@ -1,3 +1,21 @@
### Known issues as of January 5 2025
### Install-DattoRMM version 25.1.4 is missing functions you'll need version 25.1.5
### Missing Function in module, are added in 25.1.5
### Install-SVSHelpDesk
### Install SVSWatchtower
### checkbox not working
### Threatlocker
### setsvspowerplan
### add tweek to set default provider, add to toolkit?
### need to see if there's anything else we could take from Theo script?
### make sure that when using select all option
### Module install first
### Rmm Second
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# 1) CREATE A GLOBAL LOG CACHE (NEW) # 1) CREATE A GLOBAL LOG CACHE (NEW)
@@ -633,13 +651,12 @@ function GetHtmlContent {
n8nPasswordInput.addEventListener('input', () => { n8nPasswordInput.addEventListener('input', () => {
fetchSitesButton.disabled = n8nPasswordInput.value.length < 4; fetchSitesButton.disabled = n8nPasswordInput.value.length < 4;
}); });
// Trigger fetchSites() on Enter key press
// Trigger fetchSites() on Enter key press
n8nPasswordInput.addEventListener('keydown', (event) => { n8nPasswordInput.addEventListener('keydown', (event) => {
if (event.key === 'Enter' && n8nPasswordInput.value.length >= 4) { if (event.key === 'Enter' && n8nPasswordInput.value.length >= 4) {
fetchSites(); // Call the fetchSites function fetchSites(); // Call the fetchSites function
} }
}); });
async function fetchSites() { async function fetchSites() {
const password = document.getElementById('n8nPassword').value; const password = document.getElementById('n8nPassword').value;
@@ -896,12 +913,12 @@ try {
$installRMMCommand += " -SaveCopy" $installRMMCommand += " -SaveCopy"
} }
Write-LogHybrid -Message "Constructed Command: $installRMMCommand for UID: $UID, Name: $Name" -Level "Info"
# Step 5: Execute the Command # Step 5: Execute the Command
try { try {
Invoke-Expression $installRMMCommand Invoke-Expression $installRMMCommand
$responseString = "RMM installation triggered successfully for UID: $UID, Name: $Name." $responseString = "RMM installation triggered successfully for $Name."
Write-LogHybrid -Message $responseString -Level "Success" Write-LogHybrid -Message $responseString -Level "Success"
$response.StatusCode = 200 $response.StatusCode = 200
} catch { } catch {