Are you looking for a way to stop Windows 10 or 11 from automatically shutting down on your PC? If so, here’s how to automate that.
By default, Windows is configured to put the computer to sleep after several minutes of inactivity. But if you prefer to shut down your computer every day or when you haven’t been using it for a long time, you can use Task Scheduler to schedule your Windows to shutdown automatically.
Read also: 17 ways to beat slow internet on Windows 10
Here the administrator will show you how to stop Windows 10 and 11 from automatically shutting down on your PC or laptop.
How to schedule Windows 10/11 shutdown using Task Scheduler
Task Scheduler is a task scheduling utility available on the Windows operating system. You can use it to create a task scheduler to shut down your computer every day at a certain time.
Here’s how to create a task scheduler to shutdown Windows:
- push the button win over To open Windows search ribbon.
- Writes Tasks table Click on the app from the search results to open it.
- In the Task Scheduler window, click a job and choose Create a basic task.
- In the Primary task window, type a name for the task. For example, type shutdown as the name. You can also provide a description of the task.
- click next one.
- Next, select Effects. You can choose from them daily, weekly, monthly, once, etc. For this guide, the administrator will choose the launcher daily To schedule daily closings at specific times.
- So choose daily and click next one.
- Next, set starting date And the time To pause and tap repeatedly next one.
- in the tab a jobChoose Start the program and click next one.
- Writes shutdown.exe In the field Programs / scripts and click next one.
- Review the changes and click ending To create and add a new task to the Windows Scheduler.
After completing the Task Scheduler, it will automatically perform the procedure of shutting down your Windows operating system every day at a predetermined time.
How to turn off Windows 10/11 automatically when idle
If you wish, you can add a run condition to the shutdown task to specify when the task should run. This is useful if you want to trigger a shutdown task after a certain period of inactivity.
For this guide, we will modify the previously created shutdown task. If you want, you can also create a new task.
- Select the shutdown task in the Task Scheduler.
- Right-click on the task and select Properties.
- Open the tab Circumstances in the properties window.
- Choose an option beginning task only if the computer is idle for.
- together time areaEnter at the same time. For example, if you enter 10 minutes, Task Scheduler will wait for the system to idle for 10 minutes before running the shutdown task. You can choose anywhere from a few minutes to two hours.
- click yes to save the changes.
How to turn off auto shutdown
To stop Windows automatic shutdown, you can delete a scheduled task in the Windows Task Scheduler. Here is how to remove shutdown task in Task Scheduler:
- to open Tasks table. press Win + R. Writes Taskchd.msc . fileand click yes.
- In the Task Scheduler window, clickTask scheduler library.
- Locate the shutdown task and right click on it.
- To stop a task without deleting it, select disable. If you want to delete a task, select delete. then press yes to confirm the action.
How to shutdown Windows 10/11 automatically using Command Prompt or PowerShell
Task Scheduler is an excellent utility but it may seem a bit complicated for those who don’t use it often. If you are not using this method, you can use the auto shutdown method using Command Prompt. Command Prompt shutdown command allows you to set a shutdown timer to automatically shutdown your Windows computer. To schedule a system shutdown using Command Prompt:
- press win + X to open the menu WinX.
- Click Windows Terminal (administrator) To open a terminal with administrator privileges.
- In the Windows Terminal window, type the command Shutdown/sec -t Nseconds Then press Enter.
- In the above command, replace ns number of seconds. For example, if I wanted to set the timer for 5 minutes (300 seconds), the complete command would look like this: shutdown / s -t 300.
- The above command will trigger the Windows logout procedure and shutdown the computer after 5 minutes.
- If you want to perform a scheduled restart, type the command shutdown -r -t Nseconds Then press Enter.
- In the above command, replace ns With the number of seconds to set the restart timer
- To cancel the shutdown or restart the counter, type the command close -a Then press Enter.
- You will see a logout abort notification indicating that the shutdown has been cancelled.
Schedule automatic shutdown using desktop shortcuts
You can create a desktop shortcut using the shutdown timer to shutdown your computer. Useful if you don’t want to run the Command Prompt every time you set the timer. Here’s how to create a desktop shortcut for the shutdown timer:
- Right-click on the Windows desktop and select New > Shortcuts.
- In the shortcut wizard, type the command shutdown -s -t 300 In the field Type the location of the item.
- In the above command, 300 seconds (5 minutes) Represents the number of seconds for the timer. You can change the seconds according to your needs
- click next one.
- Next, type a name for your shortcut. For example, type ShutDownTimer.
- push the button ending To add a shortcut to your desktop.
- Next, right-click on the desktop shortcut ShutDownTimer and choose Properties.
- In the shortcut tab, tap they change icon.
- Select the icon that best represents the acronym. For this guide, the administrator will choose the icon Energy.
- click yes to make a choice.
- then press Progressing And the yes to save the changes.
You can double-click the shortcut ShutDownTimer to start the shutdown. To cancel the shutdown, use the command shutdown -a at the command prompt.
Read also: 25 Windows Keyboard Shortcuts You Should Know
This is how to auto shutdown Windows 10 da 11. You can use Command Prompt and Task Scheduler to automate system shutdown on Windows 10/11 PC or laptop. However, unlike Command Prompt, Task Scheduler provides better automation of tasks and supports more conditions. You can also configure it to automate Windows startup.
Lots of articles How to turn off Windows 10 and 11 automatically. Look forward to other interesting articles and don’t forget to share this article with your friends. Thank you
Hi, I am Azara! At Azara Tech we are passionate about tech and love sharing our knowledge and research with you.
At Azara Tech, we strive to be the ultimate resource for learning everything about technology!