From 93f7290573938bb16572cc107956262ee2932d1f Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Wed, 2 Jul 2025 21:37:27 -0400 Subject: [PATCH] Update StackMonkey_Beta.ps1 --- StackMonkey_Beta.ps1 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/StackMonkey_Beta.ps1 b/StackMonkey_Beta.ps1 index 9729ef0..0ae00e2 100644 --- a/StackMonkey_Beta.ps1 +++ b/StackMonkey_Beta.ps1 @@ -21,14 +21,14 @@ 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. + - 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 + - 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.