Skip to main content

Deploy with check - MalwareBytes for Windows (Without prompt) Test

Summary

This procedure is used to uninstall the old version of Malwarebytes and install the latest version on machines. The script retrieves the token to install the latest Malwarebytes from Org CF, namely "MalwareBytes Token." If the token is not present, the script will only uninstall the old Malwarebytes version if it is found.

Example Agent Procedure Log

Logs for uninstalling the old version and not installing the new version as the Org CF "MalwareBytes Token" is not filled with a token.

TimeActionStatusUser
9:47:38 am 16-Dec-22Deploy with check - MalwareBytes for Windows (Without prompt)Success THENprovaltech.com/ovais.rashid
9:47:38 am 16-Dec-22Deploy with check - MalwareBytes for Windows (Without prompt)-0010Machine is not 32 Bit OSprovaltech.com/ovais.rashid
9:47:38 am 16-Dec-22Windows - 32 or 64 bit OSSuccess THENprovaltech.com/ovais.rashid
9:47:38 am 16-Dec-22Windows - 32 or 64 bit OS-0011Windows OS is 64-bit.provaltech.com/ovais.rashid
9:47:37 am 16-Dec-22Deploy with check - MalwareBytes for Windows (Without prompt)Falseprovaltech.com/ovais.rashid
9:47:37 am 16-Dec-22Execute Shell command - Get Results to VariableSuccess THENprovaltech.com/ovais.rashid
9:47:34 am 16-Dec-22Execute Shell command - Get Results to Variable-0005Executing command in 64-bit shell as system: C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -ExecutionPolicy Bypass -Command C:/provaltech/malwarebytes32bit.ps1 >"c:/provaltech/commandresults-1592077206.txt" 2>&1provaltech.com/ovais.rashid
9:47:32 am 16-Dec-22Write text to fileSuccess THENprovaltech.com/ovais.rashid
9:47:31 am 16-Dec-22Write text to file-0002Overwrite enabled and file exists - deleting before write process.provaltech.com/ovais.rashid
9:47:31 am 16-Dec-22Deploy with check - MalwareBytes for Windows (Without prompt)-0006MalwareBytes installation run, check dashboard for statusprovaltech.com/ovais.rashid
9:47:31 am 16-Dec-22Deploy with check - MalwareBytes for Windows (Without prompt)-0006Comment at THEN step 3provaltech.com/ovais.rashid
9:47:24 am 16-Dec-22Windows - 32 or 64 bit OSSuccess THENprovaltech.com/ovais.rashid
9:47:24 am 16-Dec-22Windows - 32 or 64 bit OS-0011Windows OS is 64-bit.provaltech.com/ovais.rashid
9:47:24 am 16-Dec-22Deploy with check - MalwareBytes for Windows (Without prompt)False False False False Falseprovaltech.com/ovais.rashid
9:47:24 am 16-Dec-22Execute Shell command - Get Results to VariableSuccess THENprovaltech.com/ovais.rashid
9:47:21 am 16-Dec-22Execute Shell command - Get Results to Variable-0005Executing command in 64-bit shell as system: C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -ExecutionPolicy Bypass -Command C:/provaltech/malwarebytes64bit.ps1 >"c:/provaltech/commandresults-577953449.txt" 2>&1provaltech.com/ovais.rashid
9:47:20 am 16-Dec-22Write text to fileSuccess THENprovaltech.com/ovais.rashid
9:47:19 am 16-Dec-22Write text to file-0003Overwrite disabled and file exists - adding text to existing file.provaltech.com/ovais.rashid
9:47:19 am 16-Dec-22Deploy with check - MalwareBytes for Windows (Without prompt)-0002Malwarebytes 32-bit version found and removed successfullyprovaltech.com/ovais.rashid
9:47:17 am 16-Dec-22Deploy with check - MalwareBytes for Windows (Without prompt)-000164-bit MalwareBytes is not presentprovaltech.com/ovais.rashid
9:47:17 am 16-Dec-22Deploy with check - MalwareBytes for Windows (Without prompt)Comment at THEN step 5provaltech.com/ovais.rashid
9:47:17 am 16-Dec-22Deploy with check - MalwareBytes for Windows (Without prompt)orgGUID: 25112131431621572261613213provaltech.com/ovais.rashid
9:47:10 am 16-Dec-22Run Now - Deploy with check - MalwareBytes for Windows (Without prompt)Admin provaltech.com/ovais.rashid scheduled procedure Run Now - Deploy with check - MalwareBytes for Windows (Without prompt) to run at Dec 16 2022 9:47 AMprovaltech.com/ovais.rashid

Logs when the old version was not present and the latest version was already installed.

TimeActionStatusUser
5:02:43 am 07-Dec-22Deploy with check - MalwareBytes for Windows (Without prompt) TestScript Summary: Success THENprovaladmin
5:02:43 am 07-Dec-22Deploy with check - MalwareBytes for Windows (Without prompt) Test-000564-bit Latest version of MalwareBytes is already installedprovaladmin
5:02:43 am 07-Dec-22Windows - 32 or 64 bit OSScript Summary: Success THENprovaladmin
5:02:43 am 07-Dec-22Windows - 32 or 64 bit OS-0011Windows OS is 64-bit.provaladmin
5:02:43 am 07-Dec-22Deploy with check - MalwareBytes for Windows (Without prompt) Test-000232-bit path is not present and old version is already uninstalledprovaladmin
5:02:43 am 07-Dec-22Deploy with check - MalwareBytes for Windows (Without prompt) Test-000164-bit path is not present and old version is already uninstalledprovaladmin
5:02:43 am 07-Dec-22Deploy with check - MalwareBytes for Windows (Without prompt) Testde56be1c-0e80-4946-b673-56b096a9030fprovaladmin
5:02:43 am 07-Dec-22Deploy with check - MalwareBytes for Windows (Without prompt) TestorgGUID: 36197532434171111895249772provaladmin
5:02:36 am 07-Dec-22Run Now - Deploy with check - MalwareBytes for Windows (Without prompt) TestAdmin provaladmin scheduled procedure Run Now - Deploy with check - MalwareBytes for Windows (Without prompt) Test to run at Dec 7 2022 5:02 AMprovaladmin

Dependencies

No dependencies.

Process

The script first checks if the old version is installed and then removes it. It subsequently checks whether the latest version is installed; if not, it installs the latest version. The script retrieves the token from Org CF.

Output

Procedure log files.

Attachments

Procedure_Deploy_with_check_-MalwareBytes_for_Windows(Without_prompt).xml