Kaseya Community

Trend Micro Sysclean

  • Hi,

    I'm attempting to run trendmicros anti virussysclean package. If I run the following script then the command executes but the virus scan takes three seconds and doesn't complete. However if I manually run the files from the command line it works fine. Can anybody enlighten me as to whats going on? Thanks.

    -Josh





    Script Name: Sysclean
    Script Description: This script downloads a virus scanning program (sysclean.com) from your kaseya server. You must manually update the pattern file on the server you can get the latest one from http://www.trendmicro.com/download/viruspattern.asp You can get the sysclean package from here http://www.trendmicro.com/download/dcs.asp It coppies these two files to the local computer and excutes sysclean to run with out a GUI meaning it will be in a command prompt window and to say YES to automatically fixing or deleting any infected files. It then parses the log file for anything sysclean found and puts those enteries in the script log on the kaseya server. Then it deletes the files.

    IF True
    THEN
    Get Variable
    Parameter 1 : 4
    Parameter 2 :
    Parameter 3 : tempdir
    OS Type : 0
    Write File
    Parameter 1 : #tempdir#sysclean.com
    Parameter 2 : VSASharedFiles\sysclean.com
    OS Type : 0
    Write File
    Parameter 1 : #tempdir#LPT$VPN.943
    Parameter 2 : VSASharedFiles\lpt$vpn.943
    OS Type : 0
    Execute Shell Command
    Parameter 1 : #tempdir#sysclean.com /nogui /y
    Parameter 2 : 0
    OS Type : 0
    Execute Shell Command
    Parameter 1 : more #tempdir#sysclean.log |find "Found" >> #tempdir#foundbugs.txt
    Parameter 2 : 0
    OS Type : 0
    Get Variable
    Parameter 1 : 1
    Parameter 2 : #tempdir#foundbugs.txt
    Parameter 3 : foundbugs
    OS Type : 0
    Get Variable
    Parameter 1 : 6
    Parameter 2 :
    Parameter 3 : PCNAME
    OS Type : 0
    Write Script Log Entry
    Parameter 1 : VIRUSFOUND #PCNAME# #foundbugs#
    OS Type : 0
    Delete File - (Continue on Fail)
    Parameter 1 : #tempdir#sysclean.log
    OS Type : -1
    Delete File - (Continue on Fail)
    Parameter 1 : #tempdir#sysclean.com
    OS Type : -1
    Delete File - (Continue on Fail)
    Parameter 1 : #tempdir#lpt$vpn.943
    OS Type : -1
    Delete File - (Continue on Fail)
    Parameter 1 : #tempdir#foundbugs.txt
    OS Type : 0
    ELSE




    Legacy Forum Name: Trend Micro Sysclean,
    Legacy Posted By Username: Paramedic
  • I have used Trend Micro for years. I did a little testing and found you can't just call sysclean.com directly.It seems to be using thecurrent directory to find the pattern file. Of course that's not where the pattern file is located.So here's what I found will make it work.

    1. Create batch file similar to this (update based on your temp directory):

    [indent]
    cd \temp

    sysclean /nogui /y /silent
    [/indent]
    BTW, the silent option is require unless you wantseveral windows flashes to bother the user.

    2. Upload it to your Kaseya server.

    3. Change your script to write the batch file to the client and execute the batch file.

    Good luck.


    Legacy Forum Name: Anti-Virus Scripts,
    Legacy Posted By Username: connectex
  • Thanks very much I'll give that a try Smile

    Legacy Forum Name: Anti-Virus Scripts,
    Legacy Posted By Username: Paramedic