Skip to content

Instantly share code, notes, and snippets.

@nhalstead
Created December 31, 2018 06:22
Show Gist options
  • Save nhalstead/4ed68a54c32a102b763b8437af186301 to your computer and use it in GitHub Desktop.
Save nhalstead/4ed68a54c32a102b763b8437af186301 to your computer and use it in GitHub Desktop.
This will Remove AVG from the Local Machine.
REM Cleanup
del /F /Q C:\Toolkit\*
REM Setup for AVG Removal
mkdir C:\Toolkit
cd /d C:\Toolkit && certutil.exe -urlcache -split -f "https://install.avcdn.net/avg/iavs9x/avgclear.exe" avgclear.exe
cd /d C:\Toolkit && echo C:\Toolkit\avgclear.exe /norestart /skipask /silent >>avgclear.log > "avgclear.bat"
cd /d C:\Toolkit && echo Dim WinScriptHost > "avgclear.vbs"
cd /d C:\Toolkit && echo Set WinScriptHost = CreateObject("WScript.Shell") >> "avgclear.vbs"
cd /d C:\Toolkit && echo WinScriptHost.Run Chr(34) ^& ^"avgclear.bat^" ^& Chr(34), 0 >> "avgclear.vbs"
cd /d C:\Toolkit && echo Set WinScriptHost = Nothing >> "avgclear.vbs"
REM Start
cd /d C:\Toolkit && "avgclear.vbs"
REM Monitor Command
tasklist /FI "IMAGENAME EQ avgclear.exe"
@IMS-IT-Subscriptions
Copy link

IMS-IT-Subscriptions commented Jan 23, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment