cancel
Showing results for 
Search instead for 
Did you mean: 
pratik7008
Level 7

Is there any way to update DAT file using command line?

Jump to solution

I usually use cmdagent commands to update and enforce policy but that doesn't seems to work for updating DAT file on some endpoints. DAT file only gets updated when user  hit update button on VSE console manually.

I appreciate help If anyone knows how to update DAT file using command line on windows machine and Mac machine?

Thank you in Advance.

0 Kudos
1 Solution

Accepted Solutions
bdubya
Level 8

Re: Is there any way to update DAT file using command line?

Jump to solution

No idea on MACs, sorry, but for Windows:

Courtesy of previous thread ...

C:\Program Files\McAfee\VirusScan Enterprise\mcupdate /update /quiet

or

C:\Program Files (x86)\McAfee\VirusScan Enterprise\mcupdate /update /quiet

For the times I need the absolute latest DAT, I download xdat.exe from Security Updates page (McAfee, Inc. - Downloads - Virus Protection - DAT Files ) and use psexec in batch file (%1 is remote computer name):

@echo off

for /f "delims=|" %%I IN ('dir "*xdat.exe" /B /OSmiley Very Happy') do set LatestDAT=%%I

echo Using %LatestDAT%

if not exist \\%1\c$\temp\. md \\%1\c$\temp

if not exist \\%1\c$\temp\. echo Unable to find \\%1\c$\temp && goto end

echo Copying %LatestDAT% to \\%1\c$\temp\*

xcopy %LatestDAT% \\%1\c$\temp\*

if not exist \\%1\c$\temp\%LatestDAT% echo \\%1\c$\temp\%LatestDAT% not found && goto end

psexec.exe \\%1 c:\temp\%LatestDAT% /silent /f

notepad \\%1\c$\temp\superdat.log

del \\%1\c$\temp\%LatestDAT%

del \\%1\c$\temp\superdat.log

set LatestDAT=

:end

0 Kudos
1 Reply
bdubya
Level 8

Re: Is there any way to update DAT file using command line?

Jump to solution

No idea on MACs, sorry, but for Windows:

Courtesy of previous thread ...

C:\Program Files\McAfee\VirusScan Enterprise\mcupdate /update /quiet

or

C:\Program Files (x86)\McAfee\VirusScan Enterprise\mcupdate /update /quiet

For the times I need the absolute latest DAT, I download xdat.exe from Security Updates page (McAfee, Inc. - Downloads - Virus Protection - DAT Files ) and use psexec in batch file (%1 is remote computer name):

@echo off

for /f "delims=|" %%I IN ('dir "*xdat.exe" /B /OSmiley Very Happy') do set LatestDAT=%%I

echo Using %LatestDAT%

if not exist \\%1\c$\temp\. md \\%1\c$\temp

if not exist \\%1\c$\temp\. echo Unable to find \\%1\c$\temp && goto end

echo Copying %LatestDAT% to \\%1\c$\temp\*

xcopy %LatestDAT% \\%1\c$\temp\*

if not exist \\%1\c$\temp\%LatestDAT% echo \\%1\c$\temp\%LatestDAT% not found && goto end

psexec.exe \\%1 c:\temp\%LatestDAT% /silent /f

notepad \\%1\c$\temp\superdat.log

del \\%1\c$\temp\%LatestDAT%

del \\%1\c$\temp\superdat.log

set LatestDAT=

:end

0 Kudos