Announcement

Collapse
No announcement yet.

Uninstall 'RMM Agent ', ' Comodo One Patch Management' and COMODO ESM Agents

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Uninstall 'RMM Agent ', ' Comodo One Patch Management' and COMODO ESM Agents

    You can use below scripts to uninstall RMM, PM and ESM agents and it can be extended to interested products.


    Code:
    import os;
    import re;
    import subprocess;
    k=[];
    guid=os.popen('C:\\Windows\\System32\\WindowsPower Shell\\v1.0\\powershell.exe "get-wmiobject Win32_Product | Format-Table Name,IdentifyingNumber" | findstr /i /c:"RMM Agent" /c:"Comodo One Patch Management" /c:"COMODO Endpoint Security" /c:"COMODO ESM Agent" ').read();
    print(guid)
    k.append(re.findall("{.*",guid));
    j=[];
    for i in k[0]:
        j.append(i);
    
    print j;
    
    for i in j:
        os.system('msiexec.exe /x '+i+' /quiet REBOOT=ReallySuppress REMOVE=ALL');




    Sample output would be(displays product ids),
    Click image for larger version

Name:	uninstall_out.jpg
Views:	1
Size:	59.6 KB
ID:	4496


    Last edited by mkannan; 09-12-2016, 02:58 PM.
Working...
X