Script Request - MAC AV removal

Can you please help to generate a script for the AV version installed, Mac is 2.4.0.177 running OSX 10.11.6,

Thank you

Hi @gregory.lewis

Thank you for contacting us for the script. We will inform you about the script within two working days.

@mkannan if you could have this delivered by tomorrow it would be greatly appreciated, we are up against a tight timeline.

Thank you

Hi @gregory.lewis

ITSM procedures cannot be run on MAC OS X devices as of now.But we have developed script that can run with the help of official python executable

Please refer the below Script that can uninstall Comodo Antivirus

Note: The Script Should Run as an “Administrator”


import os
import time

def uninstall():
    path=r'/Applications/Comodo/Uninstall COMODO Antivirus.app/Contents/MacOS/'
    os.chdir(path)
    sam=os.popen('Uninstall COMODO Antivirus -s').read()
    print sam
    time.sleep(90)
    check()

def check():
    path=r'/Applications'
    os.chdir(path)
    import re
    ki=os.popen('ls').read()
    find=re.findall('Comodo',ki)
    c=0
    if len(find)>0:
        c=1
        print "Uninstalling Comodo Antivirus"
        uninstall()
    elif c==1:
        print "Comodo Antivirus has scuccessfully uninstalled"
    else:
        print "Comodo Antivirus Has not installed at endpoint"

check()

Alternatively, you can run below command in MAC terminal to uninstall Comodo Anti virus

Command = ‘/Applications/Comodo/Uninstall COMODO Antivirus.app/Contents/MacOS/’ Uninstall COMODO Antivirus -s