Search code examples
windows-7mcafee

How to turn off McAfee programmatically


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"


Solution

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