Compare commits

...
2 Commits
Author SHA1 Message Date
dyoder 6f6980eed6 modify to deploy like rmm agent 2022-09-06 11:41:22 -04:00
dyoder 235a31909b removed empty line at end 2022-09-06 11:41:06 -04:00
2 changed files with 12 additions and 3 deletions
-1
View File
@@ -73,4 +73,3 @@ If ( $INSTALL ) {
# Delete this script
Remove-Item $MyInvocation.MyCommand.Path -Force
+11 -1
View File
@@ -1,4 +1,11 @@
# NOTE: $URL must be set in calling script!
param(
[Parameter(Mandatory=$true)][string]$URL
)
# Source the Tools.ps1 script
Function SourceTools
{ . $([Scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Tools.ps1'))) }
. SourceTools
# Download the installer
$INSTALLER = '{0}epi_win_live_installer.exe' -f (GetTempPath)
@@ -15,3 +22,6 @@ Catch { LogErr $_.Exception.Message }
LogMsg "Deleting downloaded installer ""${INSTALLER}"""
Try { Remove-Item -Path $INSTALLER -Force -ErrorAction SilentlyContinue }
Catch { LogErr $_.Exception.Message }
# Delete this script
Remove-Item $MyInvocation.MyCommand.Path -Force