fix agent installation

dot source utility script
This commit is contained in:
2020-10-15 13:22:55 -04:00
parent 54754d4d6b
commit 87b04283f8
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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
+3 -1
View File
@@ -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