How to disable Avast until reboot

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Sebastian42
Posts: 34
Joined: 17 Feb 2017 02:28

How to disable Avast until reboot

#1 Post by Sebastian42 » 20 Apr 2020 03:31

I have ground to a halt in my attempt to use Macro Express or Autohotkey in a batch file to do 'the subject'. There is probably an optimal program to handle this, but I don't know which it is, and in desperation am asking this forum for whatever will progress my pursuit of a solution - as I would expect to use the solution in a batch file anyway. 64xWin10ProV1909.

miskox
Posts: 630
Joined: 28 Jun 2010 03:46

Re: How to disable Avast until reboot

#2 Post by miskox » 20 Apr 2020 03:36

I think it would be better to ask the Avast Forum for this how to disable it.

saso

Sebastian42
Posts: 34
Joined: 17 Feb 2017 02:28

Re: How to disable Avast until reboot

#3 Post by Sebastian42 » 20 Apr 2020 03:54

As I wrote - I have ground to a halt because I've not had a response from Avast.
The MANUAL procedure is simple and effective, but I have been unable to translate that into viable code.
KillTask and a command line trigger 'access denied' and
"C:\Program Files\End Process\EndProcess" "C:\Program Files\Avast Software\Avast.exe" probably fails because there is no 'Avast.exe' in that folder.

ShadowThief
Expert
Posts: 1166
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: How to disable Avast until reboot

#4 Post by ShadowThief » 20 Apr 2020 08:19

I don't have Avast installed, but assuming the executable is called avast.exe, it should be as simple as

Code: Select all

taskkill /f /im avast.exe
and running that as an Administrator (to prevent the "Access Denied" error). Of course, if there are additional processes, you'll need to taskkill those as well.

Sebastian42
Posts: 34
Joined: 17 Feb 2017 02:28

Re: How to disable Avast until reboot

#5 Post by Sebastian42 » 20 Apr 2020 08:45

I have found a better explanation why "C:\Program Files\End Process\EndProcess" "C:\Program Files\Avast Software\Avast.exe" fails :
1. Should probably be C:\Program Files\End Process\EndProcess.exe
2. My C:\ has NO \Program Files\End Process\
3. Avast.exe if it existed, would not NOT specific for the Systray Icon.
4. Even if the code were correct, access would probably be denied, until I know how to code for 'as admin'.

elzooilogico
Posts: 128
Joined: 23 May 2016 15:39
Location: Spain

Re: How to disable Avast until reboot

#6 Post by elzooilogico » 20 Apr 2020 09:11

aren't those procceses (or at least one of them) services?

in that case you need

Code: Select all

sc stop ""ServiceName"
or

Code: Select all

net stop "ServiceName"

Sebastian42
Posts: 34
Joined: 17 Feb 2017 02:28

Re: How to disable Avast until reboot

#7 Post by Sebastian42 » 20 Apr 2020 09:36

That looks like a fruitful suggestion - I tried ending the avast service manually, but was denied access. I'm puzzled why access is given to the mouse-clicking method, but not another. Neither of those lines by themselves in a batch file, affected the AvastService status or anything in the context menu of the Avast systray icon - nor did they trigger an error message. Where to from here - a REALLY accurate recording (for replay) of mouse clicks ? - I have found that method not reliable.

P.S.The effective mouse method also leaves the AvastService unchanged.

Compo
Posts: 600
Joined: 21 Mar 2014 08:50

Re: How to disable Avast until reboot

#8 Post by Compo » 20 Apr 2020 13:19

I suppose that this is technically an answer to your question.

How bad would an anti-malware product be if a script was able to turn it off, (until it had completed tasks unhindered by that anti-malware product)?

Post Reply