diff --git a/Install-EmberkomBackup.ps1 b/Install-EmberkomBackup.ps1 index 93f5981..811db6a 100644 --- a/Install-EmberkomBackup.ps1 +++ b/Install-EmberkomBackup.ps1 @@ -13,4 +13,6 @@ $URL = "http://downloads.backupops.com/4Windows/${MSPName}Backup_installer.exe" $Arguments = "/SP- /VERYSILENT /NORESTART /WPUSH /WACCOUNT ""${ClientShortName}_${Env:COMPUTERNAME}"" /WORG ""${ClientLongName}"" /WEMAIL ""${ClientNotificationEmail}""" ## Install Emberkom Backup -Install-Program -Path $(Download-File -URL $URL) -Arguments "${Arguments}" -Delete \ No newline at end of file +#Install-Program -Path $(Download-File -URL $URL) -Arguments $Arguments -Delete + +Write-Host $Arguments \ No newline at end of file diff --git a/Remove-DeltekVision.ps1 b/Remove-DeltekVision.ps1 index 9cd9d63..c900182 100644 --- a/Remove-DeltekVision.ps1 +++ b/Remove-DeltekVision.ps1 @@ -1,7 +1,5 @@ -. $([Scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Tools.ps1'))) - -## Stop the DeltekVision process -Remediation-StopProcess -Name "DeltekVision" -Force +## Stop the DeltekVision process +End-Process -Name "DeltekVision" -Force ## Set the path to Deltek Vision $APP_PATH = "${Env:UserProfile}\AppData\Local\Apps\2.0" @@ -11,6 +9,6 @@ If ( Test-Path $APP_PATH ) { ## Delete the existing installed app Try { Remove-Item $APP_PATH -Recurse -Force } - Catch { Write-Output $_.Exception.Message } + Catch { LogErr $_.Exception.Message } -} Else { Write-Output "${APP_PATH} does not exist!" } \ No newline at end of file +} Else { LogMsg "${APP_PATH} does not exist!" } \ No newline at end of file