Do Scheduled tasks run when computer is sleeping?

Will scheduled tasks like these and scheduled defrags, etc run when the computer is hibernating?
Bob SchneiderCo-OwnerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

No, there's no way to wake it up for it to do the jobs other then you pushing the power button. For these jobs, the laptop cannot be in hibernation, or in stand-by.
Brad GrouxSenior Manager (Wintel Engineering)Commented:
If you set the task condition to wake the computer in Task Scheduler, yes.
Task Scheduler Conditions
Jayaraja JayaramanSharepoint Architect ConsultantCommented:
can you give more insight on which OS version you are tying to do this ?
XP's Scheduled Task manager has the ability to bring the workstation out of a state of Hibernation or Standby to run a Scheduled Task.

When creating a new task using the Scheduled Task wizard the last page presents a checkbox: "Open advanced properties for this task when I click Finish". In the resulting Properties dialog box, click the Settings tab, check wake the computer to run this task, and click OK.

If the workstation's BIOS is ACPI compliant, and recognized as such by XP, the Scheduled Task Manager will awaken the computer from either Hibernation or Standby and run the task.

If its windows see teh screenshot
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Bob SchneiderCo-OwnerAuthor Commented:
The OS is Windows 7 but I am also talking about the embedded tasks like disk defrag, MIcrosoft Security Essentials Virus Scan, Malware Bytes Anit-Malware Scan, etc.
Jayaraja JayaramanSharepoint Architect ConsultantCommented:
yes you can do it.
all you have to do is find the exe which is called by disk defrag or ms security essentials and then run it on the task scheduler
Brad GrouxSenior Manager (Wintel Engineering)Commented:
The screenshot I posted above was from Windows 7, so it can be done. To kick off Security Essentials, Anti-Malware or defrag just create a scheduled task to do so and choose the wake option.
Jayaraja JayaramanSharepoint Architect ConsultantCommented:
1.  Open Control Panel
2.  Double-click Scheduled Tasks
3.  Double-click Add Scheduled Task
4.  On the Scheduled Task Wizard dialog, click Next
5.  Click Browse
6.  In the Select Program to Schedule dialog, navigate to the windows\system32 folder
7.  Select defrag.exe
8.  Click Open
9.  In the Scheduled Task Wizard dialog, type a name for the scheduled task (Disk Defragmenter, for instance)
10. Under Perform this task, select how often you wish Disk Defragmenter to run
11. Click Next
12. Set the time at which you wish the Disk Defragmenter scheduled task to run.  This should be a time when your computer is on, but not in heavy use.
13. Select the frequency at which you want the Disk Defragmenter scheduled task to run (Every Day, Weekdays, or Every <N> days, where <N> is the number of days between scheduled runs)
14. Click Next
15. Enter a user name under which the Disk Defragmenter scheduled task will run.  Note: This user must be an administrator on the local machine.
16. Enter the password for the user you entered in the previous step
17. Confirm the password for the user
18. Click Next
18.1 also ensure the cehckbox provided in screenshot above to wake up
19. Check Open advanced properties for this task when I click Finish
20. Click Finish
21. In the Run text box, you should see the full path and command for defrag.exe.  By default, this path is C:\WINDOWS\SYSTEM32\defrag.exe
22. Append the drive letter for the drive you wish to defragment to the command in the Run text box.  In a default installation, your Run command will look like this:
        C:\WINDOWS\SYSTEM32\defrag.exe C:
23. Click OK
24. In the Set Account Information dialog, enter and confirm the password for the user listed in Run as
25. Click OK

this is an eg of defragmentation of disk.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bob SchneiderCo-OwnerAuthor Commented:
arghhh...I have to do this on 20 computers....but thanks for the help!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Laptops Notebooks

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.