Skip to content

Uninstall Avast Command Line Access

echo Done. Reboot recommended. The command line offers powerful, scriptable uninstallation for Avast products, but success depends heavily on disabling Self-Defense first and often booting into Safe Mode . For most users, the official avastclear.exe tool with the /silent flag provides the best balance of safety and effectiveness. The manual driver/registry method should remain an absolute last resort for corrupted installations where even Safe Mode fails.

Locate the uninstall string.

Open . Query the registry for Avast’s product code: uninstall avast command line

echo Cleanup temporary files... del /q %temp%\asw*.log

wmic product where "name like 'Avast%%'" get name, identifyingnumber Example output: echo Done

sc stop avast! Antivirus sc config avast! Antivirus start= disabled sc stop aswSnx sc stop aswSP Delete Avast drivers (from C:\Windows\System32\drivers\ ).

del /f C:\Windows\System32\drivers\asw*.sys Remove registry keys (be extremely specific). For most users, the official avastclear

avastclear.exe /uninstall "Avast Premium Security" /silent /reboot /log="C:\avast_uninstall.log" The avastclear.exe tool works best when run from Safe Mode (especially for stubborn installations). You can boot into Safe Mode via command line: bcdedit /set current safeboot minimal Method 3: Forced Driver and Service Removal (Advanced) If both standard MSI and Avast Clear fail, you can manually remove Avast’s core components. This is a high-risk method—only use when Avast prevents all other removal attempts.