Jump to content
Taylor9

Malwarebytes Endpoint Protection Repair Script

Recommended Posts

I created a PowerShell script a few months back to automate the repair of Malwarebytes Endpoint Protection and thought I would share.

If you ever notice that your endpoints are not communicating with the Cloud or you have service issues etc, the script should be able to repair the issue remotely and silently. If there is an issue with the machines cloud config, I also programmed it to run the built in recovery tool ("C:\Program Files\Malwarebytes Endpoint Agent\ConfigurationRecoveryTool.exe"). In my experience the script can resolve most of the issues I have encountered. Below is a screen shot of the script in action and I hope it is helpful!

 

What it does:

  1. iterates through list of computer hostnames in a csv file and make sure the computer exists in AD
  2. check if the machine is online
  3. remote connect via PSSession
  4. make sure the cloud version is installed
  5. check if the update file still exists in a directory, if so there is a pending software update, your services will not run fully until you reboot the system
  6. check the two services start types and make sure they are set to automatic
  7. attempt to start the services
  8. if the MBEndpointAgentStatus service fails to start, run the Malwarebytes configuration recovery tool and attempt to restart the service again
  9. validates the computer can see the Malwarebytes cloud site

 

Requirements: AD windows environment, PowerShell v5 and ps remoting must be enabled

 

Instructions and code: https://github.com/taylornrolyat/Repair-MalwarebytesCloud
 

repair example.jpg

 

 

Share this post


Link to post
Share on other sites

Very nice and works well for me, thanks @Taylor9 - once I follow your requirements to install ActiveDirectory module and use PowerShell v5. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

This site uses cookies - We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.