你还记得上一次你睡着了,而你的系统在一夜之间保持开机状态是什么时候吗?我相信每个人都对此感到内疚。但是,如果它经常发生,那么系统的健康状况和电池性能就会一天天下降。很快(Soon),效率因素就会受到影响。不用担心,Windows 10 睡眠定时器可以帮助您摆脱这个问题。我们为您带来了一份完美的指南,可帮助您启用 Windows 10 睡眠定时器。
如何在 Windows 10 中设置关机计时器(How to Set a Shutdown Timer in Windows 10)
方法 1:使用命令提示符创建 Windows 10 睡眠定时器(Method 1: Use Command Prompt to Create Windows 10 Sleep Timer)
您可以通过在Windows 10计算机上设置关机计时器来确定系统在特定时间段后关机的时间。最简单的方法是使用Command Prompt。Windows 10睡眠命令将帮助您创建Windows 10睡眠计时器。这是如何做到的:
1. 如图所示,在Windows 搜索(Windows search)栏中键入cmd 。
2. 在命令提示符(Command Prompt)窗口中键入以下命令,如下图所示,然后按 Enter(Enter):
关机 –s –t 7200(Shutdown –s –t 7200)
3.这里,-s表示该命令应该关闭(shut down)计算机,参数-t 7200表示延迟7200秒(delay of 7200 seconds)。这意味着如果您的系统在 2 小时内处于非活动状态,它将自动关闭。
4. 将提示标题为“您即将退出”的警告通知。Windows 将在(值)分钟内关闭,(You’re about to be signed out. Windows will shut down in (value) minutes,) ' 以及关闭过程的日期和时间。
方法 2:使用 Windows Powershell创建Windows 10(Create Windows 10) 睡眠(Sleep)定时器
您可以在PowerShell(PowerShell)中执行相同的任务以在指定时间段后关闭您的 PC。
1.通过在Windows搜索框中搜索来启动Windows Powershell 。
2. 键入shutdown –s –t value以达到相同的结果。
3. 就像我们上面解释的那样,将值(value)替换为您的 PC 应该关闭的特定秒数。
另请阅读:(Also Read:) 修复计算机在 Windows 10 中无法进入睡眠模式(Fix Computer Won’t Go to Sleep Mode In Windows 10)
方法 3:创建 Windows 10 睡眠定时器桌面快捷方式(Method 3: Create Windows 10 Sleep Timer Desktop Shortcut)
如果您想在不使用命令提示符(Command Prompt)或Windows Powershell的情况下创建(Windows Powershell)Windows 10睡眠定时器,您可以创建一个桌面快捷方式来打开系统上的睡眠定时器。当您双击此快捷方式时,Windows 10睡眠命令将自动激活。以下是在 Windows PC 上创建此快捷方式的方法:
1.右键单击(Right-click )主屏幕上的空白处。
2. 单击新建(New)并选择快捷方式(Shortcut ),如下图所示。
3. 现在,将给定的命令复制粘贴到“键入项目的位置”(Type the location of the item )字段中。
关机 -s -t 7200(Shutdown -s -t 7200)
4. 如果要关闭系统并强制关闭所有打开的程序,请使用以下命令:
关机.exe -s -t 00 –f(shutdown.exe -s -t 00 –f )
5. 或者,如果要创建睡眠快捷方式,请使用以下命令:
rundll32.exe powrprof.dll,SetSuspendState 0,1,0
6. 现在,在为此快捷方式(Type a name for this shortcut)字段输入名称中输入名称。
7. 单击完成(Finish )以创建快捷方式。
8. 现在,快捷方式(shortcut)将显示在桌面上,如下所示。
注意:(Note:)步骤 9 到 14 是可选的。如果你想改变显示图标,你可以关注他们。
9.右键单击(Right-click )您刚刚创建的快捷方式。
10. 接下来,单击属性(Properties )并切换到快捷方式(Shortcut )选项卡。
11. 在这里,单击突出显示的更改图标...。(Change Icon… )
12. 您可能会收到如下所示的提示。单击(Click)确定(OK )并继续。
13.从列表中选择(Select )一个图标并单击OK。
14. 单击应用(Apply),然后单击确定(OK)。
您的关机计时器图标将在屏幕上更新,如下图所示。
现在,当您离开系统2小时后,系统将自动关闭。
如何禁用 Windows 10 睡眠定时器桌面快捷方式(How to Disable Windows 10 Sleep Timer Desktop Shortcut)
也许您不再需要Windows 10睡眠定时器。在这种情况下,您应该禁用系统上的睡眠定时器桌面快捷方式。这可以在您使用新命令创建新快捷方式时完成。当您在此快捷方式上单击两次时,Windows 10睡眠定时器桌面快捷方式将自动禁用。这是如何做到的:
1. 右键单击桌面(desktop)并通过导航到New > Shortcut 来创建一个新的快捷方式,就像您之前所做的那样。
2. 现在,切换到快捷方式(Shortcut )选项卡并将给定的命令粘贴到键入项目的位置(Type the location of the item )字段中。
关机 -a(shutdown –a)
3. 现在,在为此快捷方式(Type a name for this shortcut)字段输入名称中输入名称。
4. 最后,单击完成(Finish )以创建快捷方式。
您还可以更改此禁用睡眠定时器快捷方式的图标(步骤 8-14)((Steps 8-14)),并将其放在先前创建的启用睡眠定时器快捷方式附近,以便您可以轻松访问它们。
另请阅读:(Also Read:)快速关闭 Windows 屏幕的 7 种方法( 7 Ways to Quickly Turn Your Windows Screen Off)
如何创建睡眠命令的键盘快捷键(How to Create a Keyboard Shortcut to the Sleep Command)
如果要创建睡眠定时器(Sleep Timer)命令的键盘快捷键,请按照以下步骤操作:
1. 右键单击睡眠定时器(sleep timer) 快捷方式(shortcut)并导航到属性(Properties)。
2. 现在,切换到快捷键选项卡并在(Shortcut )快捷键(Shortcut key )字段中分配一个组合键(如Ctrl + Shift +=) 。
注意:(Note:) 确保(Make)您不使用任何先前分配的组合键。
3. 最后,单击Apply > OK以保存更改。
现在,您的睡眠定时器命令的Windows键盘快捷键已激活。(Windows)如果您决定不再使用快捷方式,只需删除(delete )快捷方式文件即可。
如何使用任务计划程序安排关机(How to Schedule a Shutdown Using Task Scheduler)
您可以使用任务计划程序(Task Scheduler)自动关闭系统。执行给定的指令以执行相同的操作:
1. 要启动 运行(Run)对话框,请同时按Windows 键 (Windows key )+ R 键。
2、输入这个命令后: taskschd.msc,点击 OK 按钮,如图。
3. 现在,任务计划程序(Task Scheduler )窗口将在屏幕上打开。单击(Click)创建基本任务...(Create Basic Task… ),如下所示。
4. 现在,输入您选择的名称(Name)和描述(Description);然后,单击下一步。(Next.)
注意:(Note:)您可以使用“创建(Create)基本任务”(Basic Task)向导快速安排常见任务。
对于多个任务操作或触发器等更高级的选项,请使用“操作(Actions)”窗格中的“创建任务(Create Task)”命令。
5. 接下来,通过选择以下选项之一来选择任务何时开始:
- 日常
- 每周
- 月刊
- 一度
- 电脑启动时
- 当我登录时
- 记录特定事件时。
6. 做出选择后,点击Next。
7. 以下窗口将要求您设置开始日期(Start date )和时间。( time. )
8. 填写Recur every字段并单击Next,如下图所示。
9. 现在,在操作屏幕上选择启动程序。(Start a program )单击下一步。(Next.)
10. 在Program/script下,键入C:\Windows\System32\shutdown.exe或浏览 上述目录下的shutdown.exe 。
11. 在同一个窗口的添加参数(可选)下,(Add arguments (optional),)键入以下内容:
/s /f /t 0
12. 单击下一步。(Next.)
注意:(Note:)如果你想关闭计算机,比如 1 分钟后,然后输入 60 代替 0;这是一个可选步骤,因为您已经选择了启动程序的日期和时间,因此您可以保持原样。
13.查看(Review)您到现在为止所做的所有更改,然后在单击“完成”时选中(checkmark) 打开此任务的“属性”对话框。(Open the Properties dialog for this task when I click Finish.)然后,单击 完成。(Finish.)
14. 在常规(General )选项卡下,勾选标题为以最高权限运行(Run with the highest privileges)的框。
15. 导航到 条件选项卡( Conditions tab) 并在电源部分(Start the task only if the computer is on AC power under the Power section.)取消选择(deselect)“仅当计算机使用交流电源时才启动任务”。'
16. 同样,切换到“设置”(Settings)选项卡并选中标题为(check the option titled)“错过预定开始后尽快运行任务”的选项。(Run task as soon as possible after a scheduled start is missed.)'
在此(Hereon),您的计算机将在您选择的日期和时间关闭。
使用第三方软件(Use Third-Party Software)
如果您不想使用上述任何方法并更喜欢使用第三方应用程序来实现此功能,请继续阅读以了解更多信息。
1. SleepTimer Ultimate
用户可以从免费应用程序SleepTimer Ultimate提供的大量功能中受益。这里有各种各样的睡眠定时器,每个都有独特的功能。它的一些优点是:
- 您可以修复未来的日期和时间以关闭系统。
- 如果CPU的性能特性达到指定级别,则系统将自动注销帐户。
- 您还可以使程序在特定时间段过后启动。
这个应用程序支持从Windows XP到Windows 10的各种版本。SleepTimer Ultimate的功能取决于您使用的Windows版本。(Windows)
2.再见(2. Adios)
Adios的用户界面非常简单易用。它是免费下载的,您可以享受以下功能:
- 您可以在计时器上运行程序。
- 您可以设置要在特定日期和时间下载的程序或应用程序。
- 您可以将显示器切换到关闭(OFF)状态。
- 您可以享受定时关机功能以及用户注销功能。
受到推崇的:(Recommended:)
我们希望本指南对您有所帮助,并且您能够在您的 PC 上创建 Windows 10 睡眠定时器(create Windows 10 sleep timer on your PC)。让我们知道哪种方法或应用程序最适合您。如果您对本文有任何疑问/评论,请随时将它们放在评论部分。
How To Create Windows 10 Sleep Timer On Your PC
Do you remember the last time when you fell asleep, and your system remained switched on overnight? І am sυrе everyone is guilty of thiѕ. But, if it happens frequently, then the health and battery рerformance of your system degrаdes day by day. Ѕoon, the effiсiency faсtors will be affected. No worries, Windоws 10 ѕleep timer could hеlp you to get rid of this рroblem. We bring to you a рerfect guide that will help you enable Windows 10 sleep timer.
How to Set a Shutdown Timer in Windows 10
Method 1: Use Command Prompt to Create Windows 10 Sleep Timer
You can time your system to shut down after a particular period of time by setting a shutdown timer on your Windows 10 computer. The easiest way to do so is using Command Prompt. Windows 10 sleep command will help you to create Windows 10 sleep timer. Here’s how to do it:
1. Type cmd in the Windows search bar as depicted.
2. Type the following command in Command Prompt window, as shown below, and hit Enter:
Shutdown –s –t 7200
3. Here, -s denotes that this command should shut down the computer, and the parameter –t 7200 denotes the delay of 7200 seconds. This implies that if your system is inactive for 2 hours, it will shut down automatically.
4. A warning notification will be prompted titled ‘You’re about to be signed out. Windows will shut down in (value) minutes,‘ along with the date and time of the shutdown process.
Method 2: Use Windows Powershell to Create Windows 10 Sleep Timer
You can perform the same task in PowerShell to shut down your PC after a specified period of time.
1. Launch the Windows Powershell by searching for it in the Windows search box.
2. Type shutdown –s –t value to achieve the same result.
3. Like we explained above, replace the value with the specific number of seconds after which your PC should shut down.
Also Read: Fix Computer Won’t Go to Sleep Mode In Windows 10
Method 3: Create Windows 10 Sleep Timer Desktop Shortcut
If you want to create Windows 10 sleep timer without using Command Prompt or Windows Powershell, you can create a desktop shortcut that opens the sleep timer on your system. When you double-click on this shortcut, Windows 10 sleep command will be activated automatically. Here is how to create this shortcut on your Windows PC:
1. Right-click on the blank space on the home screen.
2. Click on New and select Shortcut as depicted below.
3. Now, copy-paste the given command in the Type the location of the item field.
Shutdown -s -t 7200
4. If you want to turn off your system and force close any open programs, use the following command:
shutdown.exe -s -t 00 –f
5. Or, if you want to create a sleep shortcut, use the following command:
rundll32.exe powrprof.dll, SetSuspendState 0,1,0
6. Now, type a name in Type a name for this shortcut field.
7. Click Finish to create the shortcut.
8. Now, the shortcut will be displayed on the desktop as follows.
Note: Steps 9 to 14 are optional. If you want to change the display icon, you can follow them.
9. Right-click on the shortcut you just created.
10. Next, click on Properties and switch to the Shortcut tab.
11. Here, click on Change Icon… as highlighted.
12. You may receive a prompt as depicted below. Click on OK and proceed.
13. Select an icon from the list and click on OK.
14. Click on Apply followed by OK.
Your icon for the shutdown timer will be updated on the screen, as depicted below.
Now, when you are away from your system for 2 hours, the system will shut down automatically.
How to Disable Windows 10 Sleep Timer Desktop Shortcut
Maybe you no longer require Windows 10 sleep timer. In this case, you should disable the sleep timer desktop shortcut on your system. This can be accomplished when you create a new shortcut with a new command. When you click twice on this shortcut, the Windows 10 sleep timer desktop shortcut will be disabled automatically. Here is how to do it:
1. Right-click on the desktop and create a new shortcut by navigating to New > Shortcut as you did earlier.
2. Now, switch to the Shortcut tab and paste the given command in the Type the location of the item field.
shutdown –a
3. Now, type a name in Type a name for this shortcut field.
4. Lastly, click Finish to create the shortcut.
You can also change the icon (Steps 8-14) for this disable sleep timer shortcut and place it near the previously created enable sleep timer shortcut so that you can access them easily.
Also Read: 7 Ways to Quickly Turn Your Windows Screen Off
How to Create a Keyboard Shortcut to the Sleep Command
If you want to create a keyboard shortcut to the Sleep Timer command, follow the below-mentioned steps:
1. Right-click on the sleep timer shortcut and navigate to Properties.
2. Now, switch to the Shortcut tab and assign a key combination (like Ctrl + Shift +=) in the Shortcut key field.
Note: Make sure you do not use any previously assigned key combinations.
3. Finally, click on Apply > OK to save the changes.
Now, your Windows keyboard shortcut to the sleep timer command is activated. In case you decide not to use the shortcut anymore, simply delete the shortcut file.
How to Schedule a Shutdown Using Task Scheduler
You can use Task Scheduler to auto shut down your system. Implement the given instructions to do the same:
1. To launch the Run dialog box, press Windows key +R keys together.
2. After entering this command: taskschd.msc, click the OK button, as shown.
3. Now, the Task Scheduler window will open on the screen. Click on Create Basic Task… as highlighted below.
4. Now, type the Name and Description of your choice; then, click on Next.
Note: You can use the Create a Basic Task wizard to quickly schedule a common task.
For more advanced options such as multiple task actions or triggers, use the Create Task command from the Actions pane.
5. Next, select when should the task begin by choosing one of the following:
- Daily
- Weekly
- Monthly
- One time
- When the computer starts
- When I log on
- When a specific event is logged.
6. After making your selection, click on Next.
7. The following window will ask you to set the Start date and time.
8. Fill the Recur every field and click on Next as depicted below.
9. Now, select Start a program on the Action screen. Click on Next.
10. Under Program/script, either type C:\Windows\System32\shutdown.exe or browse the shutdown.exe under the above directory.
11. On the same window, under Add arguments (optional), type the following:
/s /f /t 0
12. Click Next.
Note: If you want to shut down the computer, say after 1 minute, then type 60 in place of 0; This is an optional step as you have already selected the date & time to start the program, so you can leave it as it is.
13. Review all the changes you have made until now, then checkmark Open the Properties dialog for this task when I click Finish. And then, click Finish.
14. Under the General tab, tick the box titled Run with the highest privileges.
15. Navigate to the Conditions tab and deselect ‘Start the task only if the computer is on AC power under the Power section.‘
16. Similarly, switch to the Settings tab and check the option titled ‘Run task as soon as possible after a scheduled start is missed.‘
Hereon, your computer will shut down at the date & time you have selected.
Use Third-Party Software
If you do not want to use any of the methods mentioned above and prefer to use a third-party application for this functionality, continue reading to know more.
1. SleepTimer Ultimate
The Users can benefit from a heap of functionality offered by the free application, SleepTimer Ultimate. A wide variety of sleep timers are available here, each with unique features. Some of its advantages are:
- You can fix a future date and time to shut down the system then.
- If the CPU has reached a specified level in performance characteristics, then the system will log out of accounts automatically.
- You can also enable a program to launch after a certain time period elapses.
This app supports various versions ranging from Windows XP to Windows 10. The features of SleepTimer Ultimate will depend on the version of Windows you use.
2. Adios
The User Interface of Adios is very simple and easy to use. It is free to download, and you can enjoy the following features:
- You can run a program on a timer.
- You can set a program or application to be downloaded at a particular date & time.
- You can switch the monitor to an OFF state.
- You can enjoy the timed shutdown feature along with user logoff functions.
Recommended:
We hope that this guide was helpful and you were able to create Windows 10 sleep timer on your PC. Let us know which method or app worked for you the best. If you have any queries/comments regarding this article, then feel free to drop them in the comments section.