How to turn off Windows 10 and 11 automatically

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:

How to schedule Windows 10 11 shutdown using Task Scheduler
  1. push the button win over To open Windows search ribbon.
  2. Writes Tasks table Click on the app from the search results to open it.
  3. In the Task Scheduler window, click a job and choose Create a basic task.
  4. 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.
  5. click next one.
  6. 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.
  7. So choose daily and click next one.
  8. Next, set starting date And the time To pause and tap repeatedly next one.
  9. in the tab a jobChoose Start the program and click next one.
  10. Writes shutdown.exe In the field Programs / scripts and click next one.
  11. 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.

How to turn off Windows 10 11 automatically when idle
  1. Select the shutdown task in the Task Scheduler.
  2. Right-click on the task and select Properties.
  3. Open the tab Circumstances in the properties window.
  4. Choose an option beginning task only if the computer is idle for.
  5. 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.
  6. 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:

How to turn off auto shutdown
  1. to open Tasks table. press Win + R. Writes Taskchd.msc . fileand click yes.
  2. In the Task Scheduler window, clickTask scheduler library.
  3. Locate the shutdown task and right click on it.
  4. 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:

How to turn off Windows 10 11 automatically using Command Prompt or PowerShell
  1. press win + X to open the menu WinX.
  2. Click Windows Terminal (administrator) To open a terminal with administrator privileges.
  3. In the Windows Terminal window, type the command Shutdown/sec -t Nseconds Then press Enter.
  4. 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.
  5. The above command will trigger the Windows logout procedure and shutdown the computer after 5 minutes.
  6. If you want to perform a scheduled restart, type the command shutdown -r -t Nseconds Then press Enter.
  7. In the above command, replace ns With the number of seconds to set the restart timer
  8. To cancel the shutdown or restart the counter, type the command close -a Then press Enter.
  9. 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:

Schedule automatic shutdown using desktop shortcuts
  1. Right-click on the Windows desktop and select New > Shortcuts.
  2. In the shortcut wizard, type the command shutdown -s -t 300 In the field Type the location of the item.
  3. 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
  4. click next one.
  5. Next, type a name for your shortcut. For example, type ShutDownTimer.
  6. push the button ending To add a shortcut to your desktop.
  7. Next, right-click on the desktop shortcut ShutDownTimer and choose Properties.
  8. In the shortcut tab, tap they change icon.
  9. Select the icon that best represents the acronym. For this guide, the administrator will choose the icon Energy.
  10. click yes to make a choice.
  11. 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

Leave a Comment

/* */