Sales: (646) 970-4645

Set Your PC to sleep and Wake Up Automatically

by Dec 20, 2018Microsoft Office, Progress Technology Solutions, PTSI, Technology, Windows

Hello there, today I’m going to be showing you the easiest way to set your computer so that it goes to sleep/wake automatically.

How will this be beneficial?

This set up would be beneficial to computers in conference rooms and businesses, servers, and more. For example: A computer has been set in a conference room so that users go into the room and make video calls from it. In a working environment, the user might not have enough knowledge on the room’s set. A projector might be plugged to the computer and the user is afraid of messing with the equipment. It wouldn’t be a good idea to leave the computer on running all night as this might damage the hardware[link will be provided here] in time.

Making the computer so that it automatically goes to sleep and wakes gives a piece of mind to all users in that company. With that being said, let me show you these easy steps to accomplish this task.

What are the first steps?

1.Change power settings:

First, go to ‘power options’ located in control panel and select “change plan settings”. (Select the one you are using as shown below)

Next click on change advanced power settings located on the left in blue: Expand sleep -> Allow Wake timers and set both to ‘enabled’

2.Create .bat files

First create a folder on your desktop, call it something like “scheduler”. Once created, click on the Windows icon and type notepad, right click on it and open as administrator.

We are now going to set the sleep .bat file. To do this type the follow command:

Rundll32.exe Powrprof.dll,SetSuspendState Sleep

Click File and Save As… choose All files *.* and save your file with a “.bat” extension. Something like “sleep.bat” (Save it in your folder you created earlier)

Let’s now create the wake .bat file. This is easier just re open notepad as an administrator as described earlier and type:

echo hello

Click File – Save As… choose All files *.* and save your file with a “.bat” extension. Something like “wake.bat” (save it in your folder you created earlier)

3.Set your computer accordingly

Schedule your computer to sleep and wake at a certain time. Run Task Scheduler. The fastest way to get to it is by clicking the Start button and typing Task Scheduler.

Click Actions and then Create Task.

In the general tab, give it a name like “Sleep” and check all the boxes except for the last one “hidden”.

In the Triggers tab, click New and set your desired schedule.

Click the Actions tab and click New- Set the action to “Start a program” and browse to your sleep.bat script created earlier, Click OK.If you want to use this methods on laptop I recommend you to uncheck the settings in the Power section.If you want to prevent the computer from sleeping if programs are running or someone is using the computer, then use the settings in the Conditions tab.You’re done with this part.

Next, let’s make a Wake task. Click Action and Create Task… and name it Wake in the general tab. Then, create a daily trigger with the time you want to wake your computer. Next, go to the Actions tab and make an action to run your wake.bat script.

This concludes the tutorial. Your computer should now be able to sleep according to the schedule you gave it. As always if you have any questions feel free to leave them below and we will get back to you with answers as soon as possible.

PTSI Editorial Team

Support Line: Phone: +1 646-535-HELP (4357) Email: Support web: