Script to Uninstall MalwareBytes.

Please refer the below script to Uninstall the malware bytes.
This script will uninstall the Malwarebytes from your system without restart.

Note: Run a script procedure as system user

CODE:

import os
import ctypes
class disable_file_system_redirection:
    _disable = ctypes.windll.kernel32.Wow64DisableWow64FsRedirection
    _revert = ctypes.windll.kernel32.Wow64RevertWow64FsRedirection
    def __enter__(self):
        self.old_value = ctypes.c_long()
        self.success = self._disable(ctypes.byref(self.old_value))
    def __exit__(self, type, value, traceback):
        if self.success:
            self._revert(self.old_value)
with disable_file_system_redirection():
    drive= os.environ['SystemDrive']
    if os.path.isfile(r'%s\Program Files\Malwarebytes\Anti-Malware\unins000.exe'%drive):
        print 'uninstalling MalwareBytes removal.......'
        os.popen(r'"%s\Program Files\Malwarebytes\Anti-Malware\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART'%drive).read()
        print 'Malware bytes uninstalled successfully form your system'
    else:
        print 'Failed to uninstall Malwarebytes form your system'
   

SAMPLE OUTPUT:

20170613-MalwareBytes-uninstall.json (1.55 KB)