Share via

How Do I Automatically Shutdown my Computer after Idle?

Anonymous
2024-02-03T18:39:55+00:00

I want my Windows 11 Laptop to restart after an hour of being idle and this is what I put in task scheduler:

It doesn't do anything though, it never triggers or starts or runs on its own.

Windows for home | Windows 11 | Sleep and Power on, off

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2024-09-04T00:55:05+00:00

    there is no option when the computer idle, what should I do?

    50+ people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-02-05T17:13:35+00:00

    The extra arguments did not work, and if you looked at my post you would see I did everything else already.

    8 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-02-04T08:55:45+00:00

    Hi, Turzilla

    Welcome to the Microsoft Community.

     To automatically shut down your Windows 11 laptop after a period of idle time using Task Scheduler, you can follow these steps:
    
    • Open Task Scheduler: Press the Windows key + R to open the Run dialog box, then type "taskschd.msc" (without quotes) and press Enter. This will open the Task Scheduler.
    • Create a new task: In the Task Scheduler window, click on "Create Basic Task" in the Actions pane on the right side. This will open the Create Basic Task Wizard.
    • Name the task: Provide a name and description for the task, such as "Automatic Shutdown After Idle."
    • Set the trigger: Choose the trigger that defines when the task should run. In this case, select "When the computer is idle" and set the idle time to 1 hour. Click Next.
    • Choose the action: Select "Start a program" as the action to perform and click Next.
    • Specify the program: In the "Program/script" field, enter "shutdown.exe" (without quotes). In the "Add arguments" field, enter "-s -t 0" (without quotes). This command will initiate a shutdown immediately when triggered. Click Next.
    • Review and finish: Review the summary of the task settings and click Finish to create the task. Now, your Windows 11 laptop will automatically shut down after being idle for one hour. Please note that Task Scheduler may require administrative privileges to run, so make sure you have the necessary permissions. Keep in mind that this setup will shut down the computer regardless of any unsaved work or ongoing processes. Ensure that you save your work before leaving your laptop idle for an extended period. If you ever want to modify or delete the scheduled task, you can open Task Scheduler and locate the task under "Task Scheduler Library." Right-click on the task and choose the appropriate option.

    Best Regards

    Martin | Microsoft Community Support Specialist

    4 people found this answer helpful.
    0 comments No comments