Solved

script for sleep and wakeup on PC

Posted on 2016-08-26
2
143 Views
Last Modified: 2016-08-26
Is it possible to create a script that will put my PC to sleep at certain hour and wake up at certain hour and configure "task scheduler" that will run this script? I just want to have this done automatically in stead of manually.  If snot, are there any other option to have this accomplished ?
0
Comment
Question by:Shark Attack
2 Comments
 
LVL 28

Accepted Solution

by:
omgang earned 500 total points
ID: 41772180
Yes.  I just did a quick search on this.
Create a Scheduled Task, set it to run whether user is logged in or not.  Select 'Wake the computer to run this task'.  In the Specify Action, in the example I saw simply specify cmd.exe to open a command window and add an argument to immediately close the command window.

Do a web search for "windows 7 task scheduler task wake".  In the example I viewed there was a link to create a task to put the computer to sleep as well.

OM Gang
0
 
LVL 3

Author Comment

by:Shark Attack
ID: 41772196
thanks
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question