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.

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),

uninstall_comodo_products.txt (521 Bytes)