This site is for Avast Business products only. For articles on AVG Business products, see AVG Business Help. If you are in the right place but cannot find what you are looking for, please contact Avast Business Support for further assistance.

Antivirus Silent Uninstall Script (Windows Only)

This Article Applies to:

  • Essential/Premium/Ultimate Business Security
  • Small Office Protection

 

If you want to silently uninstall the local Antivirus client on your unmanaged Windows device(s), you can do so using a PowerShell script.

If you wish to uninstall Antivirus from multiple devices, you must repeat this process on each of them.

Do not use this process for devices managed by an Avast Business Management Console. For such devices, see Command-Line Installation Parameters if you are using the Hub or Command-Line Installation Parameters if you are using the On-Premise Console.

Disabling Self-Defense

Before you can run the silent uninstall script, you must disable the Antivirus's self-protection component

  1. Open the local Antivirus client UI
  2. Click Menu, then Settings
  3. Click the Troubleshooting tab in the General section
  4. Uncheck the box beside Enable Self-Defense
  5. Click Ok, Disable in the pop-up to confirm

Running the Script

  1. Download the Avast silent uninstall script
  2. Use PowerShell to run the script on the device
  3. Restart the device if necessary

If you encounter issues using the script, you may need to enable the execution policy, or the installation path is not default (in which case you must amend the path in the script). PowerShell's execution policy settings dictate what PowerShell scripts can be run on a Windows system. To enable the execution policy, run: set-executionpolicy unrestricted.