From a893cf62b9d745704c9a02a554f2eeea0ca362cc Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Mon, 23 Jun 2025 01:07:23 -0400 Subject: [PATCH] Update StackMonkey.ps1 --- StackMonkey.ps1 | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/StackMonkey.ps1 b/StackMonkey.ps1 index 8cfdec3..e5d9bf4 100644 --- a/StackMonkey.ps1 +++ b/StackMonkey.ps1 @@ -133,7 +133,19 @@ $Global:DattoWebhookUrl = 'https://automate.svstools.ca/webhook/svsmspkit' throw "Failed to retrieve Datto API credentials from n8n" } - #2) need to run the install-dattormm + # 2) call the existing cmdlet from your module + # (make sure you’ve already done Import-Module SVSMSP or the module that contains it) + Install-DattoRMM ` + -ApiUrl $creds.ApiUrl ` + -ApiKey $creds.ApiKey ` + -ApiSecretKey $creds.ApiSecretKey ` + -SiteUID $SiteUID ` + -SiteName $SiteName ` + -PushSiteVars:$PushSiteVars ` + -InstallRMM:$InstallRMM ` + -SaveCopy:$SaveCopy + + return } }