Windows 11: How to force shutdown after idle for say 30 mins. PC always seems to be busy

Simon Brew 0 Reputation points
2025-11-30T11:52:58.7266667+00:00

Using W11 home, I'm trying to force shutdown after say 30 mins of idle. Task scheduler should do this, but it doesn't seem to work, perhaps because, judging by the SSD activity light, Windows does something every minute or two, so the timer restarts.

Windows for home | Windows 11 | Sleep and Power on, off
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-11-30T11:54:08.9566667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To force a shutdown of your Windows 11 PC after a specified period of inactivity, you can use the Task Scheduler to create a task that triggers a shutdown command after 30 minutes of idle time. However, if your PC is frequently busy (as indicated by SSD activity), the idle timer may reset, preventing the shutdown from occurring. Here’s how to set it up:

    1. Open Task Scheduler: Press Windows + R, type taskschd.msc, and hit Enter.
    2. Create a New Task: In the right pane, click on Create Task.
    3. General Tab: Name your task (e.g., "Force Shutdown After Idle") and select "Run whether user is logged on or not".
    4. Triggers Tab: Click New, set the trigger to "On idle", and specify the duration (30 minutes).
    5. Actions Tab: Click New, set the action to "Start a program", and in the Program/script box, type shutdown. In the "Add arguments" box, enter /s /t 0 to force shutdown immediately.
    6. Conditions Tab: Ensure that "Start the task only if the computer is idle for" is checked and set to 30 minutes. You may also want to uncheck "Wake the computer to run this task" to prevent the task from running if the computer is busy.
    7. Settings Tab: Check "If the task fails, restart every" and set a reasonable interval to ensure it attempts to run again if it doesn't execute the first time.
    8. Save the Task: Click OK and enter your password if prompted.

    This setup should help you achieve the desired shutdown behavior after 30 minutes of inactivity, but keep in mind that if the system is busy, it may still affect the idle detection.


    References:

    0 comments No comments

  2. Igor Leyko 107.6K Reputation points Independent Advisor
    2025-11-30T12:39:27.6133333+00:00

    Hi,

    You may run built-in resmon tool, go to Disk tab and check what process access the disk and what file is accessed.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.