How to disable/enable Microsoft Security Essentials from the command line?

11

3

I would like to know how to disable and enable Microsoft Security Essentials from the command line.

This is a common procedure on build machines in order to speed-up the build process.

sorin

Posted 2009-12-14T14:30:39.613

Reputation: 9 439

1Or else we would have though he was making a virus. – Elmo – 2013-04-08T20:41:06.993

5+1 on the fact that you explained why you want to do it. – alex – 2009-12-14T14:39:34.377

Answers

11

To disable from the (elevated) command line:

net stop MsMpSvc

To start from the (elevated) command line:

net start MsMpSvc

However, you may get similar results by simply going in to the configuration and disable scanning on your solutions/build folder

William Hilsum

Posted 2009-12-14T14:30:39.613

Reputation: 111 572

I'm getting "System error 5 has occurred. Access is denied." (I ran command prompt as admin). – BornToCode – 2016-02-08T20:06:37.680

Hi @BornToCode - if you are running as an admin, and, your machine doesn't have multi admin levels/domain with further restrictions, this should work... I have a busy day, but, my contact details are in my profile - feel free to send me an email and I can take a quick look for you later to see if anything weird is going on/see if there is something I can do quick. – William Hilsum – 2016-02-10T09:44:58.163