Commands for installing Malwarebytes without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id Malwarebytes.Malwarebytes -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Malwarebytes.Malwarebytes -e --silentwinget uninstall --id Malwarebytes.Malwarebytes -e --silentBy installer
64-bit · EXE · All users
Silent install
mb5-setup-consumer-5.7.2.358-166.0.5763-1.0.115215.exe /VERYSILENT /NORESTART- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{35065F43-4BB2-439A-BFF7-0F1014F2E0CD}_is1
32-bit · EXE · All users
Silent install
mb5-setup-consumer-5.7.2.358-166.0.5763-1.0.115215.exe /VERYSILENT /NORESTART- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{35065F43-4BB2-439A-BFF7-0F1014F2E0CD}_is1
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-malwarebytes.ps1
$url = 'https://data-cdn.mbamupdates.com/web/mb5-setup-consumer/offline/mb5-setup-consumer-5.7.2.358-166.0.5763-1.0.115215.exe'
$sha256 = 'AEE718183B29D045CF26E3BF3B9CFF9F3C31AD4D379ECACBA9CFAFF4D26756E7'
$file = Join-Path $env:TEMP 'mb5-setup-consumer-5.7.2.358-166.0.5763-1.0.115215.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /NORESTART' -Wait install-malwarebytes.ps1
$url = 'https://data-cdn.mbamupdates.com/web/mb5-setup-consumer/offline/mb5-setup-consumer-5.7.2.358-166.0.5763-1.0.115215.exe'
$sha256 = 'AEE718183B29D045CF26E3BF3B9CFF9F3C31AD4D379ECACBA9CFAFF4D26756E7'
$file = Join-Path $env:TEMP 'mb5-setup-consumer-5.7.2.358-166.0.5763-1.0.115215.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /NORESTART' -Wait