Updating Microsoft Security Essentials by Command Line

For a project I did some research and found out to how update the virus definitions for Microsoft Security Essentials from a command line.  It is surprisingly easy and from there I was able to make a bat file and run it on a scheduled event.

In order to do this you have to navigate to the Microsoft Security Essentials location, such as

C:\Program Files\Microsoft Security Essentials\

From there you can run the command MpCmdRun.exe -SignatureUpdate, this will kick off the update for Microsoft Security Essentials.  That is the basic way to do it via command line, however if you just want to run it from a bat file you can do the following, and set an event to run the bat file when you want it to, or just double click it if needed.

Open Notepad and put in the following command.

“%ProgramFiles%\Microsoft Security Essentials\MpCmdRun.exe” -SignatureUpdate

Then save it as msseupdate.bat, or whatever you want to call it, just make sure it is a .bat file and not a .txt file.  Once this is done you can pretty much update Microsoft Security Essentials from the bat file via another program or by scheduling an event.

This is just something new and cool that I figured out for this product, and thought I would share.  If you are not super techie or have no need to update it at a specific time via a script, you can of course just let it run like normal.