Uninstall Avast Command Line !!top!! -
curl -o avastclear.exe "https://files.avast.com/iavs9x/avastclear.exe" (requires the exact product name):
Locate the uninstall string.
wmic product where "name like 'Avast%%'" get name, identifyingnumber Example output: uninstall avast command line
del /f C:\Windows\System32\drivers\asw*.sys Remove registry keys (be extremely specific).
sc stop avast! Antivirus sc config avast! Antivirus start= disabled sc stop aswSnx sc stop aswSP Delete Avast drivers (from C:\Windows\System32\drivers\ ). curl -o avastclear
"C:\Program Files\AVAST Software\Avast\Setup\Instup.exe" /uninstall /password=YourPassword Here is a complete batch script that attempts graceful removal first, then falls back to Safe Mode prompt:
avastclear.exe /uninstall "Avast Free Antivirus" /silent /noreboot | Parameter | Effect | |-----------|--------| | /uninstall "<ProductName>" | Specify product (e.g., "Avast Free Antivirus", "Avast Premium Security") | | /silent | No prompts | | /noreboot | Prevent automatic restart | | /reboot | Force restart after removal | | /log | Generate detailed log file | Antivirus sc config avast
timeout /t 5