From 87b04283f88c70833a0b472cb0d6c48271f8b091 Mon Sep 17 00:00:00 2001 From: dyoder Date: Thu, 15 Oct 2020 13:22:55 -0400 Subject: [PATCH] fix agent installation dot source utility script --- Install-ManagementAgent.ps1 | 2 +- Remove-DeltekVision.ps1 | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Install-ManagementAgent.ps1 b/Install-ManagementAgent.ps1 index a3ff09f..7413345 100644 --- a/Install-ManagementAgent.ps1 +++ b/Install-ManagementAgent.ps1 @@ -58,7 +58,7 @@ If ( $CUSTOMER_ID -and $TOKEN ) ## Install the agent Write-Log "Begin installing agent" - Try { Start-Process $AGENT_INSTALLER -ArgumentList "/s /v "" /qn CUSTOMERID=${CUSTOMER_ID} CUSTOMERSPECIFIC=1 REGISTRATION_TOKEN=${TOKEN} SERVERPROTOCOL=HTTPS SERVERADDRESS=${SERVER} SERVERPORT=443 """ -Wait } + Try { Start-Process $AGENT_INSTALLER -ArgumentList "/s /v"" /qn CUSTOMERID=${CUSTOMER_ID} CUSTOMERSPECIFIC=1 REGISTRATION_TOKEN=${TOKEN} SERVERPROTOCOL=HTTPS SERVERADDRESS=${SERVER} SERVERPORT=443""" -Wait } Catch { Write-Log $_.Exception.Message } ## Remove the agent installer diff --git a/Remove-DeltekVision.ps1 b/Remove-DeltekVision.ps1 index ca8c585..9cd9d63 100644 --- a/Remove-DeltekVision.ps1 +++ b/Remove-DeltekVision.ps1 @@ -1,4 +1,6 @@ -## Stop the DeltekVision process +. $([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 ## Set the path to Deltek Vision