Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lukemurraynz/93ac9f29ddf7db2327e356480f1c7478 to your computer and use it in GitHub Desktop.
Save lukemurraynz/93ac9f29ddf7db2327e356480f1c7478 to your computer and use it in GitHub Desktop.
DattoRMMpowerShellAppDeploymentToolkitCommand.ps1
#This is the name of the zip file in the component. Make sure that the PowerShell App Deployment Toolkit is zipped.
$ZipFile = "DesktopSOE.zip"
#This will create a folder called: C:\Temp (these folders can be changed to suit your requirements)
Mkdir c:\Temp -Force
#This will create a folder called: C:\Temp\DesktopSOE\ (these folders can be changed to suit your requirements)
Mkdir C:\Temp\DesktopSOE\ -Force
#This will then copy your PowerShellAppDeployment Toolkit to a folder, outside of the CentraStage Packagestore location.
Copy-Item -Path "$ZipFile" -Destination "C:\Temp\$ZipFile" -Recurse
$DestinationFolder = $ZipFile.Split(".")[0]
#This will then extract your PowerShell App Deployment Toolkit and run it.
Expand-Archive -Path "c:\temp\$ZipFile" -DestinationPath "C:\Temp\DesktopSOE\" -Force
Invoke-Command { c:\temp\DesktopSOE\Deploy-Application.exe }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment