I'm having a lot of problems trying to do the SIMPLEST thing and I'm hoping someone can put me in the right direction. I have ~a dozen batch files that I use to stop and start various XP Services, with no problem. (For example, there's no point in keeping the Spooler Service running all the time sucking up memory, so I have it set to Manual, then I click the Start batch file before I want to print something, then click its Stop batch file when I finished. Perfect).
So what's the problem in doing this with Microsoft Security Essentials and its anti-malware service???? First, the idiot program has no way of shutting it down, THAT is the problem! Obviously M$ believes that no one would ever have any reason to close it hence the lack of the simple right click System Tray icon and "Exit" or "Close"! The only way to shut it down is to open the Task Manager and click both "MsMpEng.exe" and "msseces.exe" and "End Process" for each. That just doesn't cut it.
Using the same batch file method for the SERVICE, MsMpEng.exe, "Microsoft Antimalware Service", DID work, ONCE. But every attempt after that failed with an "Access denied" message showing in the batch file command window! I've tried all of these, all at once and with the last 1 or 2 not there:
@echo Stopping unnecessary service...
@net stop Microsoft Antimalware Service
@net stop MsMpSvc
@net stop MsMpEng.exe
Then there's the problem with the app itself, which is NOT a Service, "msseces.exe". I can't find any way to shut it down via batch file.
However, "taskkill" does work for both of the running items! But it will only work after you click "Run" in the Start Menu and pasted the command line! You have to do it twice:
taskkill /f /im MsMpEng.exe
taskkill /f /im msseces.exe
So if that works, then why can't some kind of a one-click shortcut to those complete commands work? Why can't a batch file be created to do both tasks at the same time?
I read that one can 'allegedly' create a shortcut from the Run command. You can't. When I try and drag the Run icon in the Start Menu (as the webpage states), nothing happens! So I then found the cmd.exe file, and made a shortcut to that. Ok, but now what? Obviously when you click it, the only thing that happens is the cmd prompt window opens up waiting for the command line. How do I automatically POPULATE that line in it; "C:\WINDOWS\system32>", to EXECUTE the command lines I want? I tried modifying the shortcut's properties and that doesn't work:
C:\WINDOWS\system32\cmd.exe -taskkill /f /im MsMpEng.exe
...and several other variants, with and without quotes in various areas, etc.
So again, can anyone POH-LEEZE tell me how to shut down MSE, BOTH of those running processes, in ONE click? Via batch file, VBS script, Run command shortcut, etc, I don't care. Of course this would NOT be necessary if M$ would have simply added the right click and "Exit" for the System Tray icon.