get protect agent from private repo
This commit is contained in:
@@ -24,16 +24,14 @@ If ( Is64bit ) { $AGENTNAME = "agent_x64.msi" } Else { $AGENTNAME = "agent_x86.m
|
|||||||
|
|
||||||
# Download the installer
|
# Download the installer
|
||||||
$INSTALLER = "${TEMPDIR}\${AGENTNAME}"
|
$INSTALLER = "${TEMPDIR}\${AGENTNAME}"
|
||||||
$URL = 'https://download.eset.com/com/eset/apps/business/era/agent/latest/{0}' -f $AGENTNAME
|
#$URL = 'https://download.eset.com/com/eset/apps/business/era/agent/latest/{0}' -f $AGENTNAME
|
||||||
|
$URL = 'https://dev.emberkom.com/emberkom/management-scripts/src/branch/master/resources/eset_protect_{0}' -f $AGENTNAME
|
||||||
LogMsg "Downloading ESET Management Agent"
|
LogMsg "Downloading ESET Management Agent"
|
||||||
Download-File -URL $URL -File $INSTALLER
|
Download-File -URL $URL -File $INSTALLER
|
||||||
|
|
||||||
# Change working directory to $TEMPDIR
|
|
||||||
Set-Location -Path $TEMPDIR
|
|
||||||
|
|
||||||
# Install the app
|
# Install the app
|
||||||
LogMsg "Installing ESET Management Agent from ""${INSTALLER}"""
|
LogMsg "Installing ESET Management Agent from ""${INSTALLER}"""
|
||||||
Try { Start-Process "msiexec.exe" -ArgumentList "/i ${INSTALLER} /qn /norestart /log installer.log" -Wait }
|
Try { Set-Location -Path $TEMPDIR ; Start-Process "msiexec.exe" -ArgumentList "/i ${INSTALLER} /qn /norestart /log installer.log" -Wait }
|
||||||
Catch { LogErr $_.Exception.Message }
|
Catch { LogErr $_.Exception.Message }
|
||||||
|
|
||||||
# Delete the installer
|
# Delete the installer
|
||||||
|
|||||||
Reference in New Issue
Block a user