Tuesday, November 10, 2020

Windows Auto Sleep and Wake Up

- Advertisement -
- Advertisement -



This is a video to help you make your Computer naturally sleep and wake up on a time schedule.
This can be used for office computers, servers and virtual servers, public computers etc.
As an idea if you use Deep Freeze after the wake up you can make a time scheduled restart to return the computer to the frozen state and again be ready for the users.

Steps:

1. Disable hybrid sleep / hibernation and enable wake up timers. (Optional, but recommended)
The issue is that sometimes, hybrid sleep / hibernation can interfere with an automated wake script, depending on your configuration.
Open a command prompt as an administrator. To do this in Windows 7, click the Start button, type “cmd” (without the quotes) and then right-click cmd.exe and choose Run as administrator. Type “powercfg -h off” (without the quotes) and press Enter.
Find the power management of your system and find the advanced power options. Under Sleep options enable all the wake timers.

2. Create a script file (.bat) to put your computer to sleep.
To create, sleep batch file open up Notepad and type the following: “Rundll32.exe Powrprof.dll,SetSuspendState Sleep” (without the quotes), Click File and Save As… choose All files *.* and save your file with a “.bat” extension. Something like “sleep.bat”

3. Create a script file (.bat) to wake your computer.
There is no a command line to wake your computer, but this command will be used in order to wake up the computer to run it.
Create it opening Notepad and typing the following: “echo hello” (without the quotes) Click File – Save As… choose All files *.* and save your file with a “.bat” extension. Something like “wake.bat”.

4. 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 Action and then Create Task… In the general tab, give it a name like “Sleep” make your choice in the security options section.
In the Triggers tab, click New… Set the task up to begin the task “On a schedule” and choose daily and plug-in the time when you want it to run. Click OK.
Click the Actions tab and click New… Set the action to “Start a program” and browse to your sleep.bat script. 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. If you want to test it out, you can add a new trigger that sets it in motion 2-3 minutes from now.
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.

Now, go to the Conditions tab. Here, make sure that the “Wake the computer to run this task” option is checked.

Click OK. Now, your computer will wake and sleep at the scheduled times.

Nguồn: https://dereks-sarasota.com

Xem thêm bài viết khác: https://dereks-sarasota.com/tong-hop/

- Advertisement -

Latest news

Xem Thêm

Trình phát video miễn phí tốt nhất cho Windows

Việc chọn trình phát video phù hợp một phần là về các tính năng mà nó cung cấp và một phần là cảm giác...
- Advertisement -

Công Nghệ

mã nguồn mở là gì? Tài nguyên nguồn mở

Thuật ngữ "mã nguồn mở" đề cập đến thứ mà mọi người có thể sửa đổi và chia sẻ vì thiết kế của nó...

Khám phá tiềm năng vô hạn của proptech cùng Digitalfuture

Bạn có biết: Proptech đang thay đổi đáng kể thị trường kinh doanh bất động sản truyền thống hay không? Vậy Proptech là gì?...

Đang Dùng Dòng Laptop Khủng Mà Sao Dùng Nó Cứ Chậm Và Giật

Chào anh em rất nhiều anh em đang mua các dòng máy Trạm của HP Hoặc Dell bị tình trạng khi mở ứng...
- Advertisement -

10 COMMENTS

  1. Change Advanced Power Options > Sleep > Allow Wake Timers (Enable)

    Thank you! I'm hoping this will work now as it's been bugging me why sleep does work but not waking. 🙂

  2. Just tested everything and it worked for me on Windows 10. My HTPC is also my file server and I mapped my pictures and music over the network so the gaming PC in my room can use both of my SSDs exclusively for storing games and applications. Can't thank you enough for making this video. Well done

  3. Another pgm to use is WinSleep by MollieSoft – it lets you sleep or hibernate your computer when it is not "too busy" according to limits you define. You can also set up a schedule for when the limits are in effect.

  4. Another pgm to use is WinSleep by MollieSoft – it lets you sleep or hibernate your computer when it is not "too busy" according to limits you define. You can also set up a schedule for when the limits are in effect.

LEAVE A REPLY

Please enter your comment!
Please enter your name here