Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logon Scripts for EPO 3 installs 1

Status
Not open for further replies.

TTA89

MIS
Dec 2, 2003
3
US
Here is the problem. I need to upgrade all the clients to the new 3.0 EPO Agent which is on a different server than where the old EPO Agents are currently reporting into.

So we are trying to write a script for logon that will detect if 3.0 is installed, if not it will install it. Mcafee says the only way to tell if the EPO3 agent is installed is to look for a registry entry.

HKEY_LOCAL_MACHINE\SOFTWARE\Network Associates\ePolicy Orchestrator\Agent

Does anyone have a script written to do this already or know how to write one to look for a reg entry?

Thanks!
 
We use a logon script to check if ePo is installed but it doesn't check for a registry key. I'll have to post it tomorrow when i get back to work.

 
Here is a Kixtart script and batch file:
------------------Start------------------------------------
; kix32 (ver. 4.2) script
; ePOAgent.kix - Created on 11/24/2003 10:02
; last modified - 11/24/2003 14:49
; Install ePO Agent
;
CLS
SetConsole(hide)

; check to see if this is a W2K, XP, or NT 4 system
IF @INWIN=1
; check to make sure user has admin rights
IF Not InGroup('\\'+@WKSTA+'\Administrators') And @PRIV<>'Admin'
? 'This script requires admin rights to run...' ?
EXIT 1
ENDIF
ENDIF

; set the variables
$regbase='HKEY_LOCAL_MACHINE\SOFTWARE'
$agntver = ReadValue($regbase+'\Network Associates\ePolicy Orchestrator\Application Plugins\EPOAGENT3000','Version')
; for W2K, XP, or NT 4 systems, install new version if needed

IF @INWIN=1
SELECT
CASE
; you already have the latest version
$agntver='3.1.1.184'
EXIT 0
CASE
; you need to run the upgrade, continue on
$agntver<>'3.1.1.184'
SHELL '<INSTALLPATH>\!install.bat'
ENDSELECT
ENDIF
;messagebox ('Your agent version is '+$agntver+'.','ePO Agent Version',64)
:eof
-------------------------End-------------------------------
Batch file:
-------------------------Start------------------------------
@echo off
cls
echo *****************************************************************
echo * *
echo * Please wait while we install the ePO Agent files *
echo * *
echo * Ver 3.0.1 - Date=11/21/2003 *
echo * *
echo *****************************************************************
REM This line deletes agent events that could cause high CPU usage
del &quot;c:\Documents and Settings\All Users\Application Data\Network Associates\Common Framework\AgentEvents\*.tef&quot; >nul
REM Change the Agent Install Path for your network.
REM Make sure your sitelist.xml file is in the path.
<AGENTINSTALLPATH>\framepkg.exe /forceinstall /install=agent /silent /siteinfo=<AGENTINSTALLPATH>\sitelist.xml
&quot;C:\Program Files\Network Associates\Common Framework\cmdagent.exe&quot; /c
---------------------------------End------------------------
 
Thanks!!!!

Why are you doing a /forceinstall /install=agent on this?
 
Here is the script we use to check for the installation of the agent then if it is not present, install the agent.

IF NOT EXIST &quot;C:\Program Files\EPOAgent\naimas32.exe&quot; GOTO CHECK_1

&quot;C:\Program Files\EPOAgent\Aginst32.exe&quot; /remove

&quot;\\Ryapp01\Client\Epolicy Agent\Framepkg.exe&quot; /s /install=agent GOTO NO_EPO_INSTALL

:CHECK_1

IF NOT EXIST &quot;C:\EPOAgent\naimas32.exe&quot; GOTO CHECK_2

&quot;C:\EPOAgent\Aginst32.exe&quot; /remove

&quot;\\Ryapp01\Client\Epolicy Agent\FramePkg.exe&quot; /s /install=agent GOTO NO_EPO_INSTALL

:CHECK_2

IF EXIST &quot;C:\Program Files\Network Associates\Common Framework\UpdaterUI.exe&quot; GOTO NO_EPO_AGENT

&quot;\\Ryapp01\Client\Epolicy Agent\FramePkg.exe&quot; /s /install=agent

:NO_EPO_AGENT
 
Hello!

Can you give me the full script for this? I have Several PC's running Mcafee 7.0 and i have the update v8xp1111.exe (8.0), im running Active directory, should i run this as an computer logon script or user logon script? Please help. Please give me the full script.

Thanks

Solec
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top