diff --git a/StackMonkey.ps1 b/StackMonkey.ps1 index 32c6e4a..09a9684 100644 --- a/StackMonkey.ps1 +++ b/StackMonkey.ps1 @@ -75,8 +75,11 @@ # → writes datto_sites.csv .EXAMPLE - Before i built the Invoke-scriptmonkey - & ([ScriptBlock]::Create( (iwr 'sm.svstools.ca').Content )) -SilentInstall + & ([ScriptBlock]::Create((iwr 'sm.svstools.ca').Content )) -SilentInstall + +.EXAMPLE + & ([ScriptBlock]::Create((iwr 'sm.svstools.com').Content)) -Cleanup + .EXAMPLE not tested but i thin this is how would call it @@ -102,6 +105,11 @@ # ───────────────────────────────────────────────────────── # Toolkit-only mode [Parameter(Mandatory,ParameterSetName='Toolkit')][switch]$SilentInstall, + + # ───────────────────────────────────────────────────────── + # remove Toolkit + [Parameter(Mandatory,ParameterSetName='Cleanup')][switch]$Cleanup, + # ───────────────────────────────────────────────────────── # Datto headless mode @@ -137,6 +145,12 @@ Install-SVSMSP -InstallToolkit return } + + 'Cleanup' { + Write-LogHybrid "Running Toolkit cleanup mode" Info Startup + Install-SVSMSP -Cleanup + return + } # ─────────────────────────────────────────────────────────── # 2) If user only wants the site list, do that and exit