The Malwarebytes Toolset provides Command Line options to utilize some components quickly for automation and/or scripting purposes. These options can be passed to MBTSLauncher.exe or MBTS.exe. Below is a list of those options with examples.
- /password:”Your Startup Password” - Suppress prompt for your Startup Password.
- /scan:asset /LogFile:”Path to file” - Silently runs an Asset Management Scan and outputs the results in JSON to the file specified.
- If /LogFile is not specified, then the JSON file is saved to the following location: %UserProfile%\Desktop\AssetExport_TIMESTAMP.json
- If only a file name is specified for /LogFile (e.g. "Inform Log File.log"), then the specified file saves to the directory where MBTSLauncher.exe is stored.
- Note: MBTS.exe is not a console app. No output will send to the console window while the export is occurring.
- /scan:inform /LogFile:”Path to file” - Silently runs an Inform operation and outputs results in plain text to the file specified.
- If /LogFile is not specified, then the exported text file saves to the following location: %UserProfile%\Desktop\Inform_%COMPUTERNAME%_%DATE&TIME%.txt
- If only a file name is specified for /LogFile (e.g. "Inform Log File.log"), then the specified file will be saved to the directory where MBTSLauncher.exe is stored.
- Note: MBTS.exe is not a console app. No output will send to the console window while the export is occurring.
- /scan:issues – Scans for issues with the Malwarebytes Issue Scanner.
- /repair:network – Performs a Network Reset.
- /repair:wmi – Performs a Windows Management Instrumentation (WMI) Reset.
- /toolbox:”Name of Tool” – Launches the specified tool in quotes from the Toolbox or MyTools.
- /LogLevel:<0-5> – Launches the Malwarebytes Toolset with a specified logging level output for the “DebugLogging.txt” file. This is used for troubleshooting the Malwarebytes Portable Scanner. The default log level is 1 (ERRORS) and is used if no log level is specified. The following is a definition of each log level:
- 0 - none
- 1 – Events marked as Errors only are logged
- 2 – Events marked as Errors and Warnings are logged
- 3 – Events marked as Errors, Warnings, and Info are logged
- 4 – Events marked as Errors, Warnings, Info, and Debug are logged
- 5 – Events marked as Errors, Warnings, Info, Debug, and Trace are logged
- The DebugLogging.txt file is stored in the following locations depending on the architecture of the operating system:
- 64-Bit (x64) - Malwarebytes\MBTS\x64\DebugLogging.txt
- 32-Bit (x86) - Malwarebytes\MBTS\DebugLogging.txt