How do I set Windows 7 to wake from sleep to do a virus scan (MSE)

el_brio

Distinguished
Jan 14, 2008
80
0
18,630
Hi everyone. I use Microsoft Security Essentials and I would like to set it so that windows wakes up from sleep when it is time for the scheduled 2am virus scan. I looked at the task scheduler and couldn't figure out what the heck to do. A step by step guide would be greatly appreciated.

Thanks,
Brian
 

vvhocare5

Distinguished
Mar 5, 2008
768
0
19,060
In Win 7; in Power Management you must Enable Wake on Timer, you may also have to enable wake on timer in your BIOS. My BIOS also allows me to set the time there - I wouldnt do that until trying Task Scheduler first.

You then use Task Scheduler to wake up the system and run your task.

Other OS' you will have to experiment a little but the settings will be similar....
 

el_brio

Distinguished
Jan 14, 2008
80
0
18,630
Ok... wake on timer is enabled.... but I have no clue how to "use Task Scheduler to wake up the system and run your task". Do I need to know the executable name for the virus scan process and add that of is there an easier way? Again, since MSE is such a common program, I was hoping someone could provide the exact steps. I don't have hours to mess around trying to figure this out. Thanks for the help. Also, I plan to install Norton Ghost to backup my C: partition to a seperate drive every night... will that process be the same?

Thanks,
Brian
 
You access task scheduler via Computer Management (Right-click Computer, select "Manage"). When you create a task you can specify "Wake the computer to run this task" on the "Conditions" tab.

The task you need to run is called "MPCmdRun.exe" - it's a command-line utility included with MSE that lets you specify what to scan. For example, the following command will perform a full scan:

MpCmdRun.exe -Scan -2

Here's some more information on MpCmdRun:
http://www.thewindowsclub.com/command-line-utility-for-microsoft-security-essentials
 
The task should be able to run even if the system wakes up and sits there waiting for a password prompt. The password prompt blocks access to the desktop via the screen but it doesn't stop active tasks from doing work (except for those that are waiting for user input).

But I'd test it just to be sure.