11

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.

ᔕᖺᘎᕊ
  • 6,173
  • 4
  • 33
  • 45
sorin
  • 11,660
  • 20
  • 63
  • 73

1 Answers1

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
  • 116,650
  • 19
  • 182
  • 266
  • I'm getting "System error 5 has occurred. Access is denied." (I ran command prompt as admin). – BornToCode Feb 08 '16 at 20:06
  • 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 Feb 10 '16 at 09:44