Windows 11 may automatically shut down after a period of inactivity, interrupting your workflow or causing unsaved data loss. This behavior typically occurs due to specific power settings or scheduled tasks configured within your operating system. Adjusting these settings can effectively resolve this issue, allowing your PC to remain active even when idle.
Method 1: Adjust Power and Sleep Settings
Windows key + I to quickly open Settings.


After changing these settings, close the Settings app and restart your computer to apply the changes.
Join readers who trust AllThings.How
Add us as a preferred source on Google so our practical guides show up first next time you search.
Add to Google Preferences →Method 2: Modify Advanced Power Plan Settings
Windows key + R to open the Run dialog box. Type control.exe powercfg.cpl,,3 and press Enter. This will open the “Advanced Power Options” window directly.



Restart your PC to ensure these advanced power settings take effect.
Method 3: Disable Scheduled Shutdown Tasks
Sometimes, Windows 11 may have scheduled tasks that trigger automatic shutdowns after inactivity. Disabling these tasks can resolve the issue.



Once done, close Task Scheduler and restart your computer to apply the changes.
Method 4: Use Command Prompt to Disable Auto Shutdown
If the above methods don’t resolve the issue, you can manually disable any scheduled shutdown commands using Command Prompt.

shutdown /a

This command aborts any scheduled shutdown tasks currently active on your system.
schtasks /query | find "shutdown"

If any shutdown tasks appear, you can disable them individually using Task Scheduler as described in Method 3 above.
Close the Command Prompt window and restart your PC to confirm the changes.
After implementing these methods, your Windows 11 PC should no longer shut down automatically when idle. Regularly checking your power settings and scheduled tasks ensures your system stays active and responsive as needed.






