How to turn off McAfee programmatically

Santhosh picture Santhosh · Feb 23, 2010 · Viewed 10.9k times · Source

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 programmatically (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"

Answer

devio picture devio · Feb 23, 2010

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