I’ve wondered for a long time whether a computer will be able to preform scheduled maintenance tasks (i.e, Defrag or Backup) while the computer is in Sleep Mode or Hibernation. Will the task “wake up” the computer or will the computer just not perform the task? Thanks for any help or tips.
Mike Rapp
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Is Maintenance during Sleep or Hibernation possible?
Home » Forums » AskWoody support » Windows » Windows 7 » Questions: Windows 7 » Is Maintenance during Sleep or Hibernation possible?
- This topic has 21 replies, 10 voices, and was last updated 12 years, 3 months ago.
AuthorTopicWSMDRapp
AskWoody LoungerMay 11, 2012 at 12:42 pm #483215Viewing 10 reply threadsAuthorReplies-
WSruirib
AskWoody LoungerMay 11, 2012 at 1:34 pm #1332265If the apps that will do those tasks do not do not allow you to choose an option to have the computer wake up from sleep, you can use the Task Scheduler to do that. Waking up from hibernation is said to be possible, with apps such as WakeUpOnStandBy.
-
WSLahawk
AskWoody LoungerFebruary 25, 2013 at 9:45 pm #1376715So if Disk Defrag task is scheduled every Wen. at 1:00 AM (default setting) and the laptop lid is closed, and in sleep mode, then disk fragmentation will not take place. Sort of makes this tasks worthless, as we all close the lids on our laptops when not in use.
Why would windows use a default scheduled task on a laptop for 1:00 AM, when at that time, most users will have the laptop in sleep mode (lid closed) during the scheduled task?
Or is it possible the windows task scheduler opens the lid
wakes the computer, defrags your hard drive, closes the lid
and puts it back to sleep :confused:
Thoughts?
Thanks
Larry
Window 7 64 HP Laptop -
joep517
AskWoody MVP -
WSLahawk
AskWoody LoungerFebruary 25, 2013 at 10:21 pm #1376736Wake Up is probably what’s happening, it just seems confusing as one would think, that when the lid is closed, nothing can happen. How would I know? There is no defrag history that I can find.
Side Note: For laptops, could waking an unattended laptop, and running disk defrag be an overheating safety issue? Will task scheduler wake up a laptop on battery power if not plugged in?
-
-
WSruirib
AskWoody LoungerFebruary 26, 2013 at 2:47 am #1376739The lid being closed doesn’t mean the computer needs to be in a shutdown state. If you use Task Scheduler, there will be a log of the times it has run.
It could, indeed, happen for a laptop, that it would be awaken from sleep while inside a computer bag, for example, where heating could be an issue. If you have scheduled tasks, you’d better be careful. I believe you can configure defragmentation not to occur when on battery power, but I guess it can depend on the app use for defragmentation. I am not sure the native Windows defragmenter supports this behavior.
-
WSMedico
AskWoody Lounger -
cmptrgy
AskWoody LoungerFebruary 26, 2013 at 6:49 am #1376764I don’t have Windows 7 so I can’t check how I did it but last July I was able to set some I believe power options so that the computer wouldn’t shut off when closing the laptop lid
— As stated scheduled maintenance items will run if set up properly in Task Scheduler
—— The computer I worked on did have Hibernation mode
On why programs are usually set to run at night by default even though a computer is normally shut down
— Some of my friends wonder about that, most of them also have their computers shut down during the day when they are off to work but then wonder why scheduled items do run and/or scan when they start their computer back up
— So now they are trying to do their computer work in the middle of scheduled programs doing their job
— So demanding that their computer has instant capability for them can be an issue but that’s the computer world
— I know trying save electricity costs are behind their reasoning and/or why does the computer need to run at night but again it’s a users choice on how to balance proper maintenance & protection on their computer vs the users needs of how they use their computers
— Personally I allow my computer to run overnight so that maintenance including malware programs to run and scan overnight.
— That’s an owner’s choice.
— If preferred programs can be scheduled during the day and in many cases will run upon startupHP EliteBook 8540w laptop Windows 10 Pro (x64)
-
MrJimPhelps
AskWoody MVPFebruary 26, 2013 at 11:30 am #1376826It is useful to run certain things at night, such as Windows and anti-virus updates, anti-virus scanning, defragging, backing up the computer, etc. The electricity you will save by powering down at night is negligible, but the time you’ll save by running these tasks at night is enormous.
I don’t shut my computer down very often. If you shut down every night, then power up every morning, you will have continual cool downs / heat ups. The stuff in your computer is made of different types of materials, which contract and expand differently as the temperature changes. By cooling down / heating up often, you are putting unnecessary stress on your computer.
It is useful to restart Windows sometimes, in order to refresh settings, temp files, clean the memory, etc. But a Windows restart doesn’t require that you power down for any length of time.
The only time I power down for an extended period of time is if I go out of town for a few days.
The above applies to desktop computers. With laptops, you have to consider battery issues, but that’s for another discussion.
Group "L" (Linux Mint)
with Windows 10 running in a remote session on my file server
-
-
MrJimPhelps
AskWoody MVPFebruary 26, 2013 at 11:28 am #1376825I always set my laptop so that shutting the lid has no effect on anything, except perhaps turning off the monitor. I prefer to tell it to shut down or go into sleep mode when I want those things to occur.
If you’ll set your laptop this way, none of your automated tasks will ever have a problem when you shut the lid on your laptop.
Group "L" (Linux Mint)
with Windows 10 running in a remote session on my file server -
WSjwitalka
AskWoody LoungerFebruary 26, 2013 at 2:44 pm #1376901I power down every night and have done so for years without any hardware issues. I do my backups and av scans while idle or while I continue to work including a weekly image backup. Windows 7 and 8 will automatically do defrags so i never manually start it.
Also, the need to periodically reboot Windows has diminished considerably with Vista, windows 7, and Windows 8. XP will benefit with periodic reboots.
Do what ever is comfortable for you.
Jerry
-
WSLahawk
AskWoody LoungerMarch 1, 2013 at 3:55 am #1377483(Discussing Laptops and Scheduled Tasks)
Makes me wonder why the Windows 7 DEFAULT way of handling scheduled tasks is in the middle of the night, and the DEFAULT result of closing the lid is to enter sleep mode. Seems counter intuitive and unsafe. Easily changed, sure, but perhaps some type of notice should be issued that your laptop will be awaken from sleep mode, in the middle of the night, to say, defrag your hard drive, thus creating a possible safety hazard (over heating)
However given all that, I’m not 100% positive the scheduled task is actually occurring, as the defrag task contains no history of every performing that scheduled task. Yet it seems like it may, as my hard drive never seems to be fragmented, so perhaps the scheduled task is actually waking up my laptop at 1:00 am, defragging my hard drive and putting the laptop back to sleep, and I suppose that’s OK. But still in all, it may not be wise to have scheduled tasks, unattended, on a laptop, in the middle of the night. Just seems unsafe, especially if it’s not cooled properly.
But I’m fairly certain that on a laptop, the default scheduled task will not occur if the laptop is not plugged in to an electrical outlet, so battery only, will cancel that task, but it may still be worth while to have a look at the way your current laptop is setup to handle scheduled tasks. :rolleyes:
Larry -
WSLahawk
AskWoody LoungerMarch 1, 2013 at 8:25 am #1377503Just had a completely different thought :^_^:
The default windows setup is: laptop lid closed…sleep mode
The default windows scheduled task is: 1:00 AM with laptop in sleep mode.This makes sense because….drum roll…
A windows laptop in sleep mode will perform scheduled tasks without waking the laptop
Also for the default scheduled tasks to work, the laptop needs to be plugged into an electrical outlet. The default scheduled task will not work in battery only mode.
Windows sleep mode allows for sheduled tasks to take place in the background. This is why windows set up task scheduler/ laptop lid closed as the defualt parameter. Since the scheduled task takes place while in sleep mode, saftey is not comprimised.
Am I correct :confused: Not 100% sure, if I am, do I win anything?
Larry
-
-
-
MrJimPhelps
AskWoody MVPMarch 1, 2013 at 10:19 am #1377523Larry:
I don’t believe you’re correct in assuming that Windows will perform scheduled tasks while in sleep mode. The idea of “sleep mode” is that there’s no activity going on; everything is “frozen” just as it was when sleep mode began, so as to allow a very quick startup to that point.
You’re right; it does seem counter-intuitive that the laptop would go into sleep mode when you shut the lid, except when you consider that one of the main things Microsoft tries to achieve with their products is that their products hold your hand and automatically do as much as possible for you. And everything shutting down when you close the lid, and then starting back up right where you left off when you open the lid, fits that methodology.
If you think about it, that would probably be a good thing much of the time. But it’s not what I want, and it’s not the way I set up computers for other people, because sometimes it causes issues, such as when you have an external monitor, mouse, and keyboard, and you want to keep the laptop lid closed while you work.
Group "L" (Linux Mint)
with Windows 10 running in a remote session on my file server -
WSLahawk
AskWoody Lounger
-
-
WSruirib
AskWoody LoungerMarch 1, 2013 at 4:20 pm #1377669 -
Lounge Ranger
AskWoody LoungerMarch 4, 2013 at 1:50 pm #1378077So glad I found this conversation; I hope it’s not too late to continue it…
I want my laptop to do a backup overnight. Can’t do it with the lid closed. Very simply: Nothing happens.
This is a Windows 8 laptop with UEFI. In Power Options, the computer is allowed to wakeup to perform tasks, and all combinations of what to when the lid is closed were tried. I even created a scheduled task to purposely wake the computer in time to start the backup. The computer doesn’t care. When the lid is down, it will not run the very same backup that runs on schedule when the lid is up.
I don’t know where to begin: Is this a hardware issue or a software issue? A Windows issue or an application issue? Advice gratefully appreciated.
-
MrJimPhelps
AskWoody MVPMarch 4, 2013 at 5:33 pm #1378097So glad I found this conversation; I hope it’s not too late to continue it…
I want my laptop to do a backup overnight. Can’t do it with the lid closed. Very simply: Nothing happens.
This is a Windows 8 laptop with UEFI. In Power Options, the computer is allowed to wakeup to perform tasks, and all combinations of what to when the lid is closed were tried. I even created a scheduled task to purposely wake the computer in time to start the backup. The computer doesn’t care. When the lid is down, it will not run the very same backup that runs on schedule when the lid is up.
I don’t know where to begin: Is this a hardware issue or a software issue? A Windows issue or an application issue? Advice gratefully appreciated.
I don’t know for sure, but it sounds like an “enhancement” that Microsoft decided to put into Windows 8. I know that for Windows 7 and prior, you could set the power options to do “nothing” when you shut the lid. That’s how I always set up Windows.
If Microsoft thinks that making Safe Mode all but impossible to get to is a good thing, then I wouldn’t be surprised to find that they have also eliminated the “nothing” option for when the lid is shut.
http://windowssecrets.com/forums/showthread//152036-Finding-Safe-Mode-in-Windows-8-isn-t-easy
Group "L" (Linux Mint)
with Windows 10 running in a remote session on my file server -
b
AskWoody_MVPMarch 5, 2013 at 5:52 am #1378135I don’t know for sure, but it sounds like an “enhancement” that Microsoft decided to put into Windows 8. I know that for Windows 7 and prior, you could set the power options to do “nothing” when you shut the lid. That’s how I always set up Windows.
People in this thread don’t want nothing. They want sleep generally with a wake-up call occasionally.
If Microsoft thinks that making Safe Mode all but impossible to get to is a good thing, then I wouldn’t be surprised to find that they have also eliminated the “nothing” option for when the lid is shut.
They haven’t:
Bruce
-
Lounge Ranger
AskWoody LoungerMarch 5, 2013 at 7:55 am #1378149Friends: Not being able to wake the computer with the lid down is definitely a problem; I’ve read about it in several user forums of different OEMs.
But in my particular case, I’m embarrassed to say that I had forgotten to ‘enable’ wake timers in Power Options.
I did that (enabled wake timers) yesterday evening and my backup did run overnight.
In other circumstances, there seems to be an issue with the hardware interface to the operating system, so when the lid is closed it sends different messages to the OS, depending on the implementation. This might turn out to be an OEM issue.
-
-
-
-
-
WSruirib
AskWoody LoungerMarch 4, 2013 at 2:00 pm #1378079In all honesty, I have never tried to wake up the computer with the lid down. I had it working with the lid down, but I don’t run scheduled tasks on my laptop, so I can’t say it is possible. As laptops work with the lid down, I inferred they would wake from sleep with the lid down. I will test it, though.
-
Lounge Ranger
AskWoody Lounger
-
Viewing 10 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Recommended watching : Mountainhead movie
by
Alex5723
2 hours, 47 minutes ago -
End of support for Windows 10
by
Old enough to know better
6 minutes ago -
What goes on inside an LLM
by
Michael Covington
2 hours, 36 minutes ago -
The risk of remote access
by
Susan Bradley
1 hour, 42 minutes ago -
The cruelest month for many Office users
by
Peter Deegan
2 hours, 5 minutes ago -
Tracking protection and trade-offs in Edge
by
Mary Branscombe
5 hours, 1 minute ago -
Supreme Court grants DOGE access to confidential Social Security records
by
Alex5723
11 hours, 38 minutes ago -
EaseUS Partition Master free 19.6
by
Alex5723
3 hours, 34 minutes ago -
Microsoft : Edge is better than Chrome
by
Alex5723
1 day ago -
The EU launched DNS4EU
by
Alex5723
1 day, 13 hours ago -
Cell Phone vs. Traditional Touchtone Phone over POTS
by
280park
1 day, 3 hours ago -
Lost access to all my networked drives (shares) listed in My Computer
by
lwerman
1 day, 19 hours ago -
Set default size for pasted photo to word
by
Cyn
2 days, 1 hour ago -
Dedoimedo tries 24H2…
by
Cybertooth
1 day, 13 hours ago -
Windows 11 Insider Preview build 27871 released to Canary
by
joep517
3 days ago -
Windows 11 ad from Campaign Manager in Windows 10
by
Jim McKenna
16 hours, 49 minutes ago -
Small desktops
by
Susan Bradley
15 hours, 55 minutes ago -
Totally disable Bitlocker
by
CWBillow
1 day, 17 hours ago -
Phishers extract Millions from HMRC accounts..
by
Microfix
2 days, 21 hours ago -
Windows 10 22H2 Update today (5 June) says up-to-date but last was 2025-04
by
Alan_uk
4 days, 3 hours ago -
Thoughts on Malwarebytes Scam Guard for Mobile?
by
opti1
1 day, 22 hours ago -
Mystical Desktop
by
CWBillow
4 days, 7 hours ago -
Meta and Yandex secretly tracked billions of Android users
by
Alex5723
3 days, 12 hours ago -
MS-DEFCON 2: Do you need that update?
by
Susan Bradley
23 hours, 54 minutes ago -
CD/DVD drive is no longer recognized
by
WSCape Sand
4 days, 22 hours ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
5 days, 1 hour ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
4 days, 23 hours ago -
What is wrong with simple approach?
by
WSSpoke36
2 days, 21 hours ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
5 days, 10 hours ago -
Location, location, location
by
Susan Bradley
4 days, 1 hour ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.