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