From aca03afeb4f5b482990b52172c01a98c8f9a21e1 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Wed, 2 Jul 2025 21:36:31 -0400 Subject: [PATCH] Update StackMonkey_Beta.ps1 --- StackMonkey_Beta.ps1 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/StackMonkey_Beta.ps1 b/StackMonkey_Beta.ps1 index 02a0ac5..9729ef0 100644 --- a/StackMonkey_Beta.ps1 +++ b/StackMonkey_Beta.ps1 @@ -21,16 +21,16 @@ interactively or via HTTP endpoints, and includes built-in validation and error trapping. Key features: - • Credential retrieval – securely fetches ApiUrl, ApiKey, and ApiSecretKey from a webhook. - • OAuth management – automatically acquires and refreshes bearer tokens over TLS. - • Site list fetching – returns the list of RMM sites; validates OutputFile to .csv or .json. - • Site list saving – writes fetched site list to the user’s Desktop as CSV or JSON. - • Registry variable push – writes site-specific variables under HKLM:\Software\SVS\Deployment. - • Agent download & install – downloads the Datto RMM agent installer and launches it. - • Installer archiving – saves a copy of the downloaded installer to C:\Temp. - • HTTP endpoints – exposes `/getpw` and `/installDattoRMM` handlers, each wrapped in try/catch + - Credential retrieval – securely fetches ApiUrl, ApiKey, and ApiSecretKey from a webhook. + - OAuth management – automatically acquires and refreshes bearer tokens over TLS. + - Site list fetching – returns the list of RMM sites; validates OutputFile to .csv or .json. + - Site list saving – writes fetched site list to the user’s Desktop as CSV or JSON. + - Registry variable push – writes site-specific variables under HKLM:\Software\SVS\Deployment. + - Agent download & install – downloads the Datto RMM agent installer and launches it. + - Installer archiving – saves a copy of the downloaded installer to C:\Temp. + - HTTP endpoints – exposes `/getpw` and `/installDattoRMM` handlers, each wrapped in try/catch to log errors and return proper HTTP 500 responses on failure. - • Idempotent & WhatIf support – uses ShouldProcess for safe, testable agent installs. + - Idempotent & WhatIf support – uses ShouldProcess for safe, testable agent installs. Throughout, secrets are never written to logs or console, and all operations produce clear success/failure messages via Write-LogHybrid. ```