Jump to content

Malwarebytes Anti Exploit Keeps changing to unlicensed


Recommended Posts

Hey, Stro sorry to hear that this is happening to you.

We have the following article let us know if these steps are able to help resolve?

Cause

There's a possibility the key already exists on the server and cannot be restored.

To confirm the license key already exists:

  1. View the server logs.  Server logs are located in the following file paths:
    • C:\Program Files (x86)\Malwarebytes Management Server\Logs
    • C:\Program Files (x86)\Malwarebytes Enterprise Edition\Logs
       
  2. In the logs, look for the following error:
    ERROR SCClientService.RegisterClient: System.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_TBL_Client'. Cannot insert duplicate key in object 'dbo.TBL_Client'. The duplicate key value is <HASH>.

Resolution

Use SQL Management Studio to delete the tables dbo.TBL_ProductLicenseInfo and dbo.TBL_LicenseInfo, in that order.

 

If you need to install SQL Management Studio:

 

  1. Open SQL Management Studio.
     
  2. Connect to the Malwarebytes Management Console/Malwarebytes Enterprise Edition database.
    • If the server name is empty, enter .\sqlexpress then click Connect.
    • If you have an external SQL database, enter HOSTNAME\INSTANCENAME.
       
  3. Expand the databases.
     
  4. Right-click your database.
    • For an embedded SQL, right-click C:\Program Files (x86)\Malwarebytes Management Server\App_Data\scdb.mdf
    • For an external SQL, right-click SCDB.
       
  5. Click New Query.
     
  6. Copy and paste the code below into the query window:
    DoItAgain:
    DELETE TOP (5)
    FROM dbo.TBL_ProductLicenseInfo
    IF @@ROWCOUNT > 0
    GOTO DoItAgain
    
  7. Click Query Execute.
     
  8. Erase the query window contents, then copy and paste the code below:
    DoItAgain:
    DELETE TOP (5)
    FROM dbo.TBL_LicenseInfo
    IF @@ROWCOUNT > 0
    GOTO DoItAgain

     

  9. Click Query > Execute.
     
  10. Close SQL Management Studio.  When SQL Management Studio asks if you would like to save the query, click No.
     

When the tables are deleted, the duplicate license key is removed.  To reactivate the license key, open MBMC, then click the Admin module.

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.
Back to top
×
×
  • 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.