Update StackMonkey_Beta.ps1
This commit is contained in:
@@ -21,16 +21,16 @@
|
|||||||
interactively or via HTTP endpoints, and includes built-in validation and error trapping.
|
interactively or via HTTP endpoints, and includes built-in validation and error trapping.
|
||||||
|
|
||||||
Key features:
|
Key features:
|
||||||
• Credential retrieval – securely fetches ApiUrl, ApiKey, and ApiSecretKey from a webhook.
|
- Credential retrieval – securely fetches ApiUrl, ApiKey, and ApiSecretKey from a webhook.
|
||||||
• OAuth management – automatically acquires and refreshes bearer tokens over TLS.
|
- 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 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.
|
- 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.
|
- Registry variable push – writes site-specific variables under HKLM:\Software\SVS\Deployment.
|
||||||
• Agent download & install – downloads the Datto RMM agent installer and launches it.
|
- Agent download & install – downloads the Datto RMM agent installer and launches it.
|
||||||
• Installer archiving – saves a copy of the downloaded installer to C:\Temp.
|
- 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.
|
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
|
Throughout, secrets are never written to logs or console, and all operations produce
|
||||||
clear success/failure messages via Write-LogHybrid. ```
|
clear success/failure messages via Write-LogHybrid. ```
|
||||||
|
|||||||
Reference in New Issue
Block a user