Script for Malwarebytes
I have a simple script to install Malwarebytes on pcs, tested and worked fine. I want to modify to check it its already installed, if it isnt install. Any help?
Example:
@echo off
msiexec /i \\NETWORK\LOCATION\Setup.MBEndpointAgent.x64.msi /qb
Answers (2)
Hello hlanderos,
The Managed Installation (MI) feature of the SMA can do this. The MI will run during agent check in so if the software is already installed on a targeted device, it will skip installation. If the software is not detected on a targeted device, it will be installed.
Confirmed in the admin guide: https://support.quest.com/technical-documents/kace-systems-management-appliance/10.0%20common%20documents/administrator-guide/148#TOPIC-1224435 (second paragraph under the anchor links).
Managed Installation is well suited for this.
If you want to install with scripts, you can alternatively work with smartlabel.
Create a smartlabel that filters the computers which have NOT installed the software. Deploy the script to the smartlabel with a schedule.
- If the computer does NOT have the software, it is in the smartlabel and gets the software.
- If the computer has the software installed, it is NOT in the smartlabel and falls out of schedule.