1

I have a Windows 10 Home Edition tablet (2 in 1 actually) and I want to use the tablet part as a display for an IP camera. This means I need it on and power connected all through the day but not at night. For this task, I want to schedule it to go to sleep at lets say 11 PM and wake up at 7 AM.

Is there any way to accomplish this, maybe using Task Scheduler?

Edit: I got Sleep to work with the answer here: Use Windows Task Scheduler To Put Windows To Sleep Without Batch File however I still need to find out how to wake at a given time.

  • Great that you got this to work, and thanks for closing the loop on your question. The site's Q&A format relies on questions containing just question information, and all solution information being in answers. It would be helpful if you could move your edit to an answer. Include the gist of the solution so that it's self-contained, and use the link for attribution and further reading. You can accept your own answer to indicate that the problem is solved. – fixer1234 May 27 '18 at 0:30
  • @fixer1234 it's not a solution. I was searching for both a way to put it to sleep and wake it, but I didn't find yet. – Alex Bartiş May 28 '18 at 4:19
  • If anyone's still interested, here's an alternative way of scheduling. groovypost.com/howto/schedule-wake-sleep-windows-automatically – anonymous coward May 29 '18 at 20:17
0

Unfortunately, there's no way to create a scheduled task that just wakes the computer up. The only non-deprecated action a scheduled task can perform is running a program/script.

However, like in many cases, there's a workaround. You can configure a scheduled task to wake the computer up to perform the task. If the action is, for example, "open a cmd an immediately close it", a scheduled task can wake the computer up at a specific time.

It sounds as if you already know how to create a scheduled task, so I'll just skip to the interesting parts.

After configuring what time and how frequently you want the task to run, the action you want to add is "start a program". Under "Program/script", write "/c exit". This is a simple command that will end cmd/powershell sessions.

Open the scheduled task's properties. In the "general" tab, mark "Run whether user is logged on or not", for obvious reasons.

Now all that's left is to make the scheduled task wake the computer up if need be. In the properties, and under "conditions" mark "wake the computer to run this task". You might also want to remove the mark on "Start the task only if the computer is on AC power", if you're using a laptop. There's no need to give the task any special privileges.

And there you go - a new scheduled task that wakes the computer up whenever you want.

  • Thanks for this @stav and sorry for the late reply. This I found in a tutorial on HTG before posting the question, but it doesn't work with the way I put it to sleep, posted in the original question. Maybe then you could provide a better way of putting it to sleep? – Alex Bartiş Dec 27 '17 at 5:20
  • Widows 10 : Windows 10 requires you to choose Run Only with the following User Logged on if it is an interactive program. Sort of makes sense, but it is a change. "cmd.exe /c exit" no longer works as it is apparently is considered interactive. It will run a batch file with "Echo Hi > Wake.log", which it apparently doesn't consider interactive. answers.microsoft.com/en-us/windows/forum/all/… – zcahfg2 Jan 18 at 15:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.