1 Reply Latest reply on Aug 26, 2016 12:07 PM by bdubya

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

    pratik7008

      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.

        • 1. Re: Is there any way to update DAT file using command line?
          bdubya

          No idea on MACs, sorry, but for Windows:

          Courtesy of previous thread ... How to update DAT files remotely via command line

          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 /O:D') 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