Windows 允许您在计算机上自动执行多项任务,其中之一就是自动关闭计算机。您实际上可以为关机创建一个时间表,在指定时间自动关闭您的计算机(that automatically turns off your computer)。
在Windows(Windows) PC上设置自动关机功能非常简单快捷。事实上,有多种方法可以完成任务,您可以继续使用您认为方便的任何一种方法。
使用运行自动关闭计算机(Automatically Shut Down a Computer Using Run)
如果您想自动关闭计算机,例如 30 分钟后,使用运行(Run)创建计划将是最好和最快的方法。
您基本上需要做的就是在“运行”(Run)对话框中输入一个命令,当您选择的时间段结束时,它会关闭您的机器。
- 按Win + R键打开“运行”对话框。
- 在框中键入以下命令,然后按 Enter(Enter)。确保用您自己的时间替换1800秒。
关机-s -t 1800(shutdown -s -t 1800)
当指定的时间(以秒为单位)过去后,您的计算机将关闭。
使用命令提示符自动关闭计算机(Using Command Prompt To Automatically Shut Down a Computer)
如果您是命令提示符(Command Prompt)专家并且更喜欢使用它来执行任务,那么您也可以使用它来在您的计算机上创建关机计划。
- 同时按下Win + R键。
- 在屏幕上的框中输入cmd并按(cmd)Enter。它将打开一个命令提示符(Command Prompt)窗口。
- 当命令提示符(Command Prompt)窗口打开时,输入以下命令并按Enter。确保将1800秒替换为您想要使用的任何时间。
关机-s -t 1800(shutdown -s -t 1800)
使用任务计划程序计划自动关闭计算机(Schedule Automatically Shutting Down a Computer With Task Scheduler)
如果您注意到,上述两种方法确实可以帮助您关闭机器,但它们不会让您指定具体的关机时间和日期。如果你想在每晚 10 点关掉电脑怎么办?
这就是任务计划程序发挥作用(Task Scheduler comes into the picture)的地方。它可以让您为任何选定的日期和时间设置关闭时间表,还可以设置重复的时间表。这样,如果您希望您的计算机在每晚 10 点关闭,您可以使用该实用程序来实现。
- 使用Cortana搜索框搜索Task Scheduler。当它出现在搜索结果中时单击它。(Click)
- 当实用程序打开时,您会发现几个可供选择的选项。在右侧栏中找到显示创建基本任务(Create Basic Task)的那个,然后单击它以将其打开。
- 以下屏幕要求您输入任务的名称和描述。只要您能识别任务的用途,您就可以为任务使用任何名称。然后单击下一步(Next)继续。
- 它现在会询问您希望何时运行任务。如果您想要一个重复的任务,您可以相应地选择您的选项。如果您只希望任务运行一次,请选择一次(One time)并点击底部的下一步。(Next)
- 您现在可以设置任务的开始时间。这是您的计算机将自动关闭的时间和日期。使用日历和时间框填写信息,然后单击下一步(Next)继续。
- 它会询问您在任务运行时要执行什么操作。选择“启动程序(Start a program)”选项,然后单击“下一步”(Next)。
- 您需要在此屏幕上选择关机实用程序。单击(Click)“浏览(Browse)”按钮,它将让您浏览文件。
- 前往C:\Windows\System32\并找到并双击shutdown.exe。
- 关闭实用程序实际上需要一个“参数”才能关闭您的机器。在显示添加参数(Add arguments)的字段中输入-s ,以便该实用程序关闭您的系统并且不执行任何其他任务,例如重新启动或让您的 PC 进入睡眠状态。然后单击下一步(Next)继续。
- 您现在位于任务的最终屏幕上。确认(Confirm)一切正常,然后单击完成(Finish)以完成创建关机计划。
您在任务计划程序(Task Scheduler)中的任务将在您选择的日期和时间自动触发,并自动关闭您的计算机。确保您在关机时没有在计算机上执行任何操作,否则您可能会丢失工作。
使用睡眠定时器自动关闭 Windows PC(Use Sleep Timer To Automatically Turn Off a Windows PC)
任务计划程序(Task Scheduler)可以完成工作,但它不是创建关机计划的最简单方法。如您所见,对于每个计划创建,它需要您在任务准备好之前通过多个屏幕。
如果这是您不想花时间做的事情,并且您更喜欢更快的方法,那么第三方应用程序可能会帮助您。
进入Sleep Timer ,这是一款适用于(Sleep Timer)Windows PC的免费便携式应用程序,可让您在选择的时间关闭计算机,而无需通过多个屏幕。它只有一个屏幕,您可以在其中定义设置并准备好您的日程安排。
- 将应用程序下载(Download)到您的计算机并双击打开。
- 在主屏幕上,您有多种关闭计算机的方法。您需要将其配置如下,以便它在您选择的时间关闭您的机器。
模式(Mode)– 选择时间(Time)
操作(Action)– 确保选择了关机(Shutdown)
执行操作(Perform action at)– 选择您想要关闭 PC 的时间
然后单击播放图标开始任务。
它会显示您的计算机关闭(your computer turns off)前的剩余时间。
How To Automatically Shut Down a Windows Computer
Windows allows you to automate a number of tasks on your computer and one of these іs the automatically shutting down yоur computеr. Υou can actually create a schedule for the shutdown that automatically turns off your computer at the specified time.
Setting up the auto shutdown feature on a Windows PC is pretty easy and quick. In fact, there are multiple ways to do the task and you can proceed with any one of them that you think is convenient for you.
Automatically Shut Down a Computer Using Run
If you want to automatically shut down your computer, say after 30 minutes, using Run to create the schedule would be the best and quickest way.
All you basically need to do is enter a command in the Run dialog box and it’ll turn off your machine when your chosen time period ends.
- Press the Win + R keys to open the Run dialog box.
- Type in the following command into the box and hit Enter. Make sure to replace 1800 seconds with your own time.
shutdown -s -t 1800
Your computer will turn off when the specified time in second has elapsed.
Using Command Prompt To Automatically Shut Down a Computer
If you’re a Command Prompt guy and prefer to use it to do your tasks, you can use it for creating a shutdown schedule as well on your computer.
- Press the Win + R keys at the same time.
- Type in cmd in the box on your screen and hit Enter. It’ll open a Command Prompt window.
- When the Command Prompt window opens, type in the following command and hit Enter. Make sure to replace 1800 seconds with whatever time you want to use.
shutdown -s -t 1800
Schedule Automatically Shutting Down a Computer With Task Scheduler
If you notice, the above two methods do help you shut down your machine but they don’t let you specify a specific time and date for the shutdown. What if you want to turn off your computer at 10 PM every night?
That’s where Task Scheduler comes into the picture. It lets you set shut down schedule for any chosen date and time as well as it lets you set recurring schedules. This way, if you want your computer to turn off at 10 PM every night, you can do it using the utility.
- Use the Cortana search box to search for Task Scheduler. Click on it when it appears in the search results.
- When the utility opens, you’ll find several options you can choose from. Find the one that says Create Basic Task in the right-sidebar and click on it to open it.
- The following screen asks for the name and description of your task. You can use any name for the task as long as you can recognize what the task is for. Then click on Next to continue.
- It’ll now ask when you want for your task to run. If you want a recurring task, you can choose your options accordingly. If you only want the task to run once, select One time and hit Next at the bottom.
- You can now set the start time of the task. This is the time and date when your computer will automatically shut down. Use the calendar and time boxes to fill-in the information and then click on Next to continue.
- It will ask what action you’d like to perform when the task runs. Select the option that says Start a program and click on Next.
- You need to choose the shutdown utility on this screen. Click on the Browse button and it’ll let you browse your files.
- Head to C:\Windows\System32\ and find and double-click on shutdown.exe.
- The shutdown utility actually requires an ‘argument’ for it to shut down your machine. Enter -s in the field that says Add arguments so the utility turns off your system and not do any other tasks like rebooting or putting your PC to sleep. Then click on Next to continue.
- You’re now on the final screen of the task. Confirm everything is in order and then click on Finish to finish creating the shut down schedule.
Your task in Task Scheduler will automatically be triggered at your chosen date and time and will automatically shut down your computer. Make sure you aren’t doing anything on your computer at the shutdown time or you risk losing your work.
Use Sleep Timer To Automatically Turn Off a Windows PC
Task Scheduler gets the job done but it’s not the easiest way to create shutdown schedules. As you can see, for each schedule creation, it requires you to go through a number of screens before your task is ready.
If this is something you don’t want to spend your time on and you’d prefer a quicker way, a third-party app might help you.
Enter Sleep Timer, a free portable app for your Windows PC that lets you shut down your computer at your chosen time without going through multiple screens. All it has is a single screen where you can define your settings and your schedule is ready.
- Download the app to your computer and double-click on it to open.
- On the main screen, you have multiple ways to shut down your computer. You need to configure it as the following so it turns your machine off at your chosen time.
Mode – choose Time
Action – make sure Shutdown is selected
Perform action at – choose the desired time when you want to turn off your PC
Then click on the play icon to start the task.
It’ll show you the remaining time before your computer turns off.