Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Run schedule MS Essentials from sleep mode?

10 Jul 2010   #1
BomberAF

Windows 7
 
 
Run schedule MS Essentials from sleep mode?

I am trying to create a schedule task for MS essentials which will wake my PC at 4 am and then perform a scan once a week.

I have set a schedule for MS Essentials to run at 4 am and I have gone into the task scheduler and I have got one of the system tasks to wake the PC at 03.59 so that MS Essentials can then start at 4.00am. The thing is though it wont work, I have set up Norton ghost to run at 7.00am and I have used the syncronized time to wake up at 06.59 and Norton Ghost runs, but for MS Essentials it would start.

Can you help me out.


My System SpecsSystem Spec
.
10 Jul 2010   #2
Barman58

Windows 10 Pro x64 x3, Ubuntu
 
 

Have a look at this here ....

Scan For Viruses or Update Microsoft Security Essentials Using the MpCmdRun Command Line Utility — MAXIMUMpcguides – Windows 7 tips, tricks, help, and how-to guides

It should allow you to write a scheduled task to wake the PC and run a scan without the need for two tasks
My System SpecsSystem Spec
10 Jul 2010   #3
not so gray matter

W7 Ult. x64 | OS X
 
 

Have you tried increasing the time to 5 minutes? It could be that MS's clock is off or something. If that doesn't work, you could always write a script to execute a shortcut/command which will start a MSE scan.

Here's a tutorial on the command line version of MSE.

Keep in mind, you'll need to write a batch file (.bat) that opens the program and starts the scan. Here's some tips:

Create a .txt file and save it as all files with anyname and the extension .bat (i.e. msescan.bat)

Add the following lines

cd "%ProgramFiles%\Microsoft Security Essentials\"
MpCmdRun.exe -scan [0,1,2]


Use either 0, 1, or 2 without the brackets. 0 is your default scan, 1 is a quick scan and 2 is a full scan.

Save the file and execute it when you wake your computer.

You can also add the extension -SignatureUpdate if you want MSE to update itself.

i.e.

...
MpCmdRun.exe -SignatureUpdate -scan 0
My System SpecsSystem Spec
.

10 Jul 2010   #4
BomberAF

Windows 7
 
 

I had the PC to stay away for 3 minutes but I will try and write a task as that looks the better option.
My System SpecsSystem Spec
10 Jul 2010   #5
BomberAF

Windows 7
 
 

Quote   Quote: Originally Posted by notsograymatter View Post
Have you tried increasing the time to 5 minutes? It could be that MS's clock is off or something. If that doesn't work, you could always write a script to execute a shortcut/command which will start a MSE scan.

Here's a tutorial on the command line version of MSE.

Keep in mind, you'll need to write a batch file (.bat) that opens the program and starts the scan. Here's some tips:

Create a .txt file and save it as all files with anyname and the extension .bat (i.e. msescan.bat)

Add the following lines

cd "%ProgramFiles%\Microsoft Security Essentials\"
MpCmdRun.exe -scan [0,1,2]

Use either 0, 1, or 2 without the brackets. 0 is your default scan, 1 is a quick scan and 2 is a full scan.

Save the file and execute it when you wake your computer.

You can also add the extension -SignatureUpdate if you want MSE to update itself.

i.e.

...
MpCmdRun.exe -SignatureUpdate -scan 0

I have tried to use both the links for the tutorials but not had much luck. When you say you can add the extension to update before the scan do you just add it to the next available free line?

And can you explain a bit more how to create the .exe file, when I try to type what it says in the tutorial that you have provided it says that it cant be found.

Where do I also save the .bat file too?
My System SpecsSystem Spec
10 Jul 2010   #6
BomberAF

Windows 7
 
 

I have created a .bat file and saved it to my desktop, this is how it looks:

cd "%ProgramFiles%\Microsoft Security Essentials\"
MpCmdRun.exe -SignatureUpdate -scan 2

When I double click on it the cmd window opens then it doesn'tdo anything.
My System SpecsSystem Spec
10 Jul 2010   #7
Barman58

Windows 10 Pro x64 x3, Ubuntu
 
 

Have just checked the actual syntax which is MpCmdRun.exe -Scan -2

The "-" is important

Also this should be run in an administrator command prompt (or with highest credentials in the case of a task)
My System SpecsSystem Spec
10 Jul 2010   #8
BomberAF

Windows 7
 
 

This is what i am getting when create the batch file, if I get the same result if it type -scan as I would if typed -signatureUpdate

My System SpecsSystem Spec
10 Jul 2010   #9
BomberAF

Windows 7
 
 

Quote   Quote: Originally Posted by Barman58 View Post
Have just checked the actual syntax which is MpCmdRun.exe -Scan -2

The "-" is important

Yeah I got it working in the end but if you look at my screen dump you will see what problems I am now having.

EDIT: Yes I done it in Admin mode.
My System SpecsSystem Spec
10 Jul 2010   #10
BomberAF

Windows 7
 
 

Look here is what I get if i just try to run the scan, as you will see it's the exact same as if I tried to update the data base:

My System SpecsSystem Spec
Reply

 Run schedule MS Essentials from sleep mode?




Thread Tools




Similar help and support threads
Thread Forum
Laptop freezes between entering sleep mode to being in sleep mode
Hi, I've had this problem intermittently on my laptop for the past 2 years however it has been occuring more often recently. Basically sometimes when I click the sleep button on Windows 7, the screen fades to black as usual. However the fan keeps running (sounds like when it's on full load) and...
General Discussion
media center schedule keeps recording a show not on the schedule
Hello, Does anyone know how I can clear out the areas that media center maintains for a show that it keeps trying to schedule. Now I already used the settings path to remove the schedule, the view scheduled shows empty yet the show seems to still record. I have tried then adding the show to...
Media Center
BSOD while scanning microsoft security essentials in safe mode
My computer has been experiencing fairly random crashes with out any BSODs, so i tried running microsoft security essentials full scan. Within 10 minutes or so the computer crashed, with a BSOD. I will upload it and hopefully one of you can help. Thank you, Brennan This is the minidump file; I...
BSOD Help and Support
xp mode: 2nd install of Microsoft Security Essentials?
From everything I've read, xp mode requires a separate install of an antivirus than Windows 7. Is there a way to have XP mode run the Microsoft Security Essentials stored in Windows 7? That way, there are two instances of the MSE processes (one set of them in the XP mode virtual machine), but...
Virtualization
Can I schedule a XP Mode task from Win 7?
I have a very old legacy app that would not run or install in Win 7 compatibility mode. I download the Windows VM patch, and the XP Mode application, installed them, and was able to get the application to run. Following some information I found here, I was able to get it pinned to the start menu...
Virtualization
Computer resume from sleep when backup on a schedule?
Will the computer automatically resume from sleep when Run backup on a schedule is set at a time when the computer is sleeping or do we have to tweak the task scheduler?
Backup and Restore


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:16.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App