views:

209

answers:

1

I am running McAfee VirusScan Enterprise 8.7i on my Windows 7 machine.

I am writing this utility to configure McAfee. Now how do i turn off McAfee programatically (using c++ or c#)?

The only ways i can do it right now are :

  • Manually opening the McAfee Virusshield icon from the system tray and then selecting Exit.

  • Run a command prompt under SYSTEM account (using System internals tool psexec) and then issue the command "sc stop McShield"

+7  A: 

I guess the point of virus scanners is that they CANNOT be switched off by other software (at least not easily)

devio
If you can run as admin you can do anything...
thijs
Definitely. Antivirus software puts a lot of effort into preventing other programs from disabling it.
MightyE
@thijs It is not possible even when i am running as admin. I need to run under SYSTEM account(something which my program can't afford) to accomplish that.
Santhosh
After several trials, it really seems that it is not possible to turn off McAfee 8.7i programatically;
Santhosh