Update StackMonkey.ps1
This commit is contained in:
@@ -82,26 +82,16 @@
|
|||||||
The friendly name of the Datto RMM site (used in logging). Mandatory when performing install or variable-push.
|
The friendly name of the Datto RMM site (used in logging). Mandatory when performing install or variable-push.
|
||||||
|
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
# Fetch and save site list via webhook
|
|
||||||
Install-DattoRMM -UseWebhook -WebhookPassword 'Tndmeeisdwge!' -FetchSites -SaveSitesList -OutputFile 'sites.csv'
|
|
||||||
|
|
||||||
.EXAMPLE
|
|
||||||
# Headless install with site variables
|
|
||||||
Install-DattoRMM -ApiUrl 'https://api.example.com' -ApiKey 'KeyHere' -ApiSecretKey 'SecretHere' \
|
|
||||||
-SiteUID 'site-123' -SiteName 'Acme Corp' -PushSiteVars -InstallRMM
|
|
||||||
|
|
||||||
.EXAMPLE
|
|
||||||
# Download and save installer to C:\Temp without installing
|
|
||||||
Install-DattoRMM -ApiUrl 'https://api.example.com' -ApiKey 'KeyHere' -ApiSecretKey 'SecretHere' \
|
|
||||||
-SiteUID 'site-123' -SiteName 'Acme Corp' -SaveCopy
|
|
||||||
|
|
||||||
.EXAMPLE
|
|
||||||
& ([ScriptBlock]::Create( (iwr 'https://sm.svstools.com' -UseBasicParsing).Content )) `
|
& ([ScriptBlock]::Create( (iwr 'https://sm.svstools.com' -UseBasicParsing).Content )) `
|
||||||
-UseWebhook `
|
-UseWebhook
|
||||||
-WebhookPassword 'pwd' `
|
-WebhookPassword 'pwd'
|
||||||
-FetchSites `
|
-SiteUID 'site-123'
|
||||||
-SaveSitesList `
|
-SiteName 'Acme Copr'
|
||||||
-OutputFile 'sites.json'
|
-PushSiteVars
|
||||||
|
-InstallRMM
|
||||||
|
|
||||||
|
# Headlessly installs the Datto RMM agent on “Acme Corp” and writes site variables to the registry.
|
||||||
|
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
& ([ScriptBlock]::Create( (iwr 'https://sm.svstools.com' -UseBasicParsing).Content )) `
|
& ([ScriptBlock]::Create( (iwr 'https://sm.svstools.com' -UseBasicParsing).Content )) `
|
||||||
@@ -113,6 +103,18 @@
|
|||||||
-PushSiteVars `
|
-PushSiteVars `
|
||||||
-InstallRMM
|
-InstallRMM
|
||||||
|
|
||||||
|
# Headlessly installs the Datto RMM agent on “Acme Corp” and writes site variables to the registry.
|
||||||
|
|
||||||
|
.EXAMPLE
|
||||||
|
& ([ScriptBlock]::Create( (iwr 'https://sm.svstools.com' -UseBasicParsing).Content )) `
|
||||||
|
-UseWebhook `
|
||||||
|
-WebhookPassword 'pwd' `
|
||||||
|
-FetchSites `
|
||||||
|
-SaveSitesList `
|
||||||
|
-OutputFile 'sites.json'
|
||||||
|
|
||||||
|
# Fetches the full site list via webhook and saves it as JSON to your Desktop.
|
||||||
|
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
& ([ScriptBlock]::Create( (iwr 'https://sm.svstools.com' -UseBasicParsing).Content )) `
|
& ([ScriptBlock]::Create( (iwr 'https://sm.svstools.com' -UseBasicParsing).Content )) `
|
||||||
-ApiUrl 'https://api.example.com' `
|
-ApiUrl 'https://api.example.com' `
|
||||||
@@ -122,6 +124,8 @@
|
|||||||
-SiteName 'Acme Corp' `
|
-SiteName 'Acme Corp' `
|
||||||
-SaveCopy
|
-SaveCopy
|
||||||
|
|
||||||
|
# Downloads the RMM installer for “Acme Corp” and saves a copy under C:\Temp without running it.
|
||||||
|
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
& ([ScriptBlock]::Create( (iwr 'https://sm.svstools.com' -UseBasicParsing).Content )) `
|
& ([ScriptBlock]::Create( (iwr 'https://sm.svstools.com' -UseBasicParsing).Content )) `
|
||||||
-ApiUrl 'https://api.example.com' `
|
-ApiUrl 'https://api.example.com' `
|
||||||
@@ -132,6 +136,8 @@
|
|||||||
-InstallRMM `
|
-InstallRMM `
|
||||||
-WhatIf
|
-WhatIf
|
||||||
|
|
||||||
|
# Shows what would happen when installing the RMM agent, without making any changes.
|
||||||
|
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
& ([ScriptBlock]::Create((iwr 'sm.svstools.ca').Content )) -SilentInstall
|
& ([ScriptBlock]::Create((iwr 'sm.svstools.ca').Content )) -SilentInstall
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user