Remove: System Center Endpoint Protection (All Versions)

Hi There,

I am not sure if there is a procedure that has been done. Can you please provide a script that removes System Center Endpoint Protection.

Thanks,

Hi strategix,

Thanks for the procedure request.

We will analyse and let you know the status as soon as possible.

Hi @strategix,

Please use the script to remove System Center Endpoint Protection from your Endpoint,

Please run the script as System User

def ecmd(cmd, r=False):
    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)
    from subprocess import PIPE, Popen
    with disable_file_system_redirection():
        OBJ = Popen(cmd, shell = True, stdout = PIPE, stderr = PIPE)
    out, err = OBJ.communicate()
    ret=OBJ.returncode
    if r:
        if ret==0:
            return out.strip()
        else:
            return err.strip()
    else:
        return ret

print ecmd('C:\Windows\ccmsetup\scepinstall.exe /u /s', True)

Script in JSON format:

Please provide us your feedback for the procedure.

Thank you.

20170608-Remove-System-Center-Endpoint-Protection.json (1.5 KB)

Thank you, I will start testing it and will feedback as soon as possible.

Hi @strategix,

Did you test the procedure? Please let us know your feedback.

Thank you.