Install Malwarebytes Anti-Malware for Business by script

Document created by drossler Employee on May 10, 2017Last modified by jgolomb on Nov 20, 2018
Version 13Show Document
  • View in full screen mode

Malwarebytes Anti-Malware is available to business customers via download from the Malwarebytes website. Once downloaded, you can install Malwarebytes Anti-Malware by either launching the setup file in a graphical user interface, or by using the command line interface. This article guides you through installing via the command line interface.

 

First, open the Malwarebytes Anti-Malware Unmanaged Client Administrator Guide, and go to the Installation section > Sample Batch File Installer subsection to locate the sample installation script.

 

Sample installation script:

REM Assumes that Malwarebytes has not been installed before
@echo off
echo+
echo ** Running Malwarebytes Anti-Malware installation batch script **
%~d0
cd %~dp0
mbam-setup-1.80.x.xxxx.exe /nocancel /norestart /verysilent /suppressmsgboxes
IF DEFINED programfiles(x86) (cd "%programfiles(x86)%\Malwarebytes' Anti-Malware") ELSE (cd "%programfiles%\Malwarebytes' Anti-Malware")
START /WAIT mbamapi.exe /register 12345-67890 AAAA-BBBB-CCCC-DDDD
START /WAIT mbamapi.exe /set hidereg on
START /WAIT mbamapi.exe /update
START /WAIT mbamapi /protection –install
START /WAIT mbamapi /protection -start

 

The script silently installs and updates Anti-Malware for Business.

 

  1. Copy this script and paste it into a text file. A few edits are required to make the script work properly.

  2. On line 7 of the sample installation script, change  mbam-setup-1.80.x.xxxx.exe  to match the version number of your setup file.

  3. On the line with the /register, replace the letters and numbers with your ID and Key.

  4. You can now add other configurations, if needed.

  5. See the Configurations & Operations section of the guide, there are a number of commands that can be added to configure Anti-Malware to your liking.

  6. Once you've finished adding commands, go to File > Save.

  7. Save the file with the extension .bat.

  8. Change Save as type to All Files and click Save.

  9. Ensure the script and the installer are in the same folder, and right-click the script and choose Run as administrator to begin installation.

  10. Once finished, open Anti-Malware and check to see if your configurations were successful.

Attachments

    Outcomes