Last active
July 19, 2021 02:12
-
-
Save lukemurraynz/93ac9f29ddf7db2327e356480f1c7478 to your computer and use it in GitHub Desktop.
DattoRMMpowerShellAppDeploymentToolkitCommand.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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