Update StackMonkey_Beta.ps1
This commit is contained in:
@@ -7,7 +7,6 @@ Need to pass the N8N variables to the "install-dattormm" in the toolkit
|
|||||||
|
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
||||||
#endregion changes to be done
|
#endregion changes to be done
|
||||||
|
|
||||||
<#
|
<#
|
||||||
@@ -60,20 +59,10 @@ Need to pass the N8N variables to the "install-dattormm" in the toolkit
|
|||||||
-WhatIf
|
-WhatIf
|
||||||
|
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
& ([ScriptBlock]::Create(
|
& ([ScriptBlock]::Create( (iwr 'https://sm.svstools.com/ScriptMonkey.ps1' -UseBasicParsing).Content)) -N8nPassword '' -FetchSitesOnly -OutputFile ''
|
||||||
(iwr 'https://sm.svstools.com/ScriptMonkey.ps1' -UseBasicParsing).Content
|
|
||||||
)) `
|
|
||||||
-N8nPassword 's3cr3t' `
|
|
||||||
-FetchSitesOnly `
|
|
||||||
-OutputFile 'sites.json'
|
|
||||||
|
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
& ([ScriptBlock]::Create(
|
& ([ScriptBlock]::Create( (iwr 'https://sm.svstools.com/ScriptMonkey.ps1' -UseBasicParsing).Content )) -N8nPassword 's3cr3t' -FetchSitesOnly
|
||||||
(iwr 'https://sm.svstools.com/ScriptMonkey.ps1' -UseBasicParsing).Content
|
|
||||||
)) `
|
|
||||||
-N8nPassword 's3cr3t' `
|
|
||||||
-FetchSitesOnly
|
|
||||||
# → writes datto_sites.csv
|
|
||||||
|
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
& ([ScriptBlock]::Create((iwr 'sm.svstools.ca').Content )) -SilentInstall
|
& ([ScriptBlock]::Create((iwr 'sm.svstools.ca').Content )) -SilentInstall
|
||||||
@@ -81,12 +70,6 @@ Need to pass the N8N variables to the "install-dattormm" in the toolkit
|
|||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
& ([ScriptBlock]::Create((iwr 'sm.svstools.com').Content)) -Cleanup
|
& ([ScriptBlock]::Create((iwr 'sm.svstools.com').Content)) -Cleanup
|
||||||
|
|
||||||
|
|
||||||
.EXAMPLE
|
|
||||||
not tested but i thin this is how would call it
|
|
||||||
iex (iwr 'https://your.server/ScriptMonkey.ps1' -UseBasicParsing).Content; Invoke-ScriptMonkey -DattoApiUrl
|
|
||||||
'https://…' -DattoApiKey '…' -DattoApiSecretKey '…' -SiteUID '…' -SiteName '…' -InstallRMM -PushSiteVars"
|
|
||||||
|
|
||||||
#>
|
#>
|
||||||
|
|
||||||
function Invoke-ScriptMonkey {
|
function Invoke-ScriptMonkey {
|
||||||
|
|||||||
Reference in New Issue
Block a user