Avast Uninstall Command Line Exclusive

Get-WmiObject Win32_Product | Where-Object $_.Name -like "*Avast*" | Select-Object IdentifyingNumber, Name

Note: Like WMIC, Win32_Product can be slow as it triggers a consistency check on all installed MSI packages. Troubleshooting: What if the CLI fails? avast uninstall command line

For official reference, see: Avast Support: Uninstall Avast using avastclear Get-WmiObject Win32_Product | Where-Object $_

| Parameter | Effect | |-----------|--------| | /uninstall | Initiates removal (may show GUI) | | /silent or /verysilent | Suppresses user prompts | | /norestart | Prevents reboot after uninstall | | /nolog | Disables logging | | /log="path" | Saves log to specified file | | /REMOVE=TRUE | MSI standard removal flag | | /NORESTART=TRUE | MSI no-restart flag | This is often the most reliable command-line method

If the standard uninstaller is corrupted or fails, Avast provides a standalone tool called ( avastclear.exe ). This is often the most reliable command-line method for technicians.

msiexec.exe /x product_code /qn /force /norestart