The popular AdwCleaner tool from Malwarebytes is about to get even more popular as it now can be used entirely from the command line.
For those who are not familiar with AdwCleaner, it is a free adware and adware, PUP, spyware, and browser hijacker remover that is used on an as-needed basis. Originally developed independently, it was purchased by Malwarebytes, where it continues to be developed.
Since AdwCleaner was released, it could only be used with a GUI in Windows, but a long-requested feature command line support.
With the release of AdwCleaner 8.0.6, Malwarebytes has finally added command line support, and users can now use it within login scripts, batch files, or via a scheduled task all from the command line.
To scan a computer, but not clean anything, you would use the command:
adwcleaner_8.0.6.exe /eula /scan
To clean the computer, but not reboot, you would use the command:
adwcleaner_8.0.6.exe /eula /clean /noreboot
To clean the computer and reboot it if necessary, you would use the command:
adwcleaner_8.0.6.exe /eula /clean
If you also wish to remove preinstalled programs, you can add the
adwcleaner_8.0.6.exe /eula /clean /preinstalled
The /preinstalled argument should be used with care, as it may remove preinstalled programs from the manufacturer that you use often.