Discussion Locked

AV Updates in login script

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am trying to push antivirus updates via a login script for McAfee antivirus. I can run the update on a Win98 machine when it logs in but not a Win2k Pro machine. I am using 4149xdat.exe /f to force the update but it returns an error "update process failed". This command runs ok once I have logged in and run it from the command line. I haven't tested it in Win NT yet.

3 replies

by dmoxley

Justin,
Here is a script I wote to perform the updates with McAfee over a network, log the results and send a message to the administrator when completed successfuly:

:: This is a batch command to update
:: the Mcafee Virus DAT Files.

:: This sets the old dat file and
:: the new dat file.

set DAT=sdat4068

:: This ckecks to see if the new dat
:: file has been installed.

If exist c:\%DAT% goto end

:: This installs the DAT file in silent
:: mode, writes a logfile to the root
:: drive of the computer and reboots if
:: neccessary.
:: i: is a network share point
:: Next lines are actually one line

i:\%DAT%.exe /logfile c:\%DAT% /silent /reboot /prompt

:: This checks to see if the logfile
:: is on the computer then sends a
:: message to the SERVER about a
:: succussful install.
:: Again, On one line

If exist c:\%DAT% net send SERVER "%COMPUTERNAME% has successfully updated %DAT% DAT file"

This discussion is closed to new replies.