You can always use the Shutdown /s /t 60 command and create a desktop shortcut to delay the shutdown of your Windows 11/10 computer by (in this case, 60 secs) or make it shut down at a particular time after calculating the time in seconds; you can also use the Task scheduler to shut down, restart or perform any action at one time or periodically.
Schedule Shutdown or Restart in Windows 11/10
Using the Task Scheduler, you can schedule the computer to shut down at a certain time in the night or any time! And why might you want to do this? Maybe your computer is processing a task or downloading files from the Internet, and you do not want to wait till then. You can then schedule it to shut down after, say, 2 hours while you go on to catch up on your beauty sleep!
To make your computer shut down at a particular time, type taskschd.msc in Start search and hit Enter to open the Task Scheduler. In the right panel, click on Create Basic Task.
Give it a name and a description if you wish, and click Next.
When asked When do you want the task to start, select One time. Click Next.
Select the Start date and time.
Clicking Next will bring you to the Action page. Here select Start a program and click on Next.
Here type shutdown on the Program/script space and /s /f /t 0 in the Add arguments box. If you want the shutdown to commence after, say 60 sec, type 60 instead of 0 here.
Click Next to review all and finally click Finish. Your computer will shutdown on the designated day and time.
NOTE: In a CMD window, you may run shutdown /? to see all the available switches. To schedule restarts, you need to use the /r parameter instead of the /s parameter. To log off the current user, use /l.
If you are looking out for faster ways to do it, take a look at some of these free tools to Auto Shutdown, Restart Windows PC at fixed times.
How do I stop Windows from restarting automatically?
You can disable the task from the scheduler, or if you are getting a shutdown prompt, you can use the abort command. Open Run prompt (WIn + R), type shutdown -a, and press the Enter key. Make sure to execute it as soon as you get the message about the shutdown.
TIP: You can also schedule an Automatic Shutdown using Command Prompt.
Why does my PC keep on restarting?
If you have not set a schedule to restart the PC, then hardware is failing. It could be the RAM or storage device that causes a Reboot loop.
How do you automatically Shut Down Windows on Idle when Not in use?
To make your Windows computer automatically shut down when not in use or when it is idle, use the Task Scheduler, use the Create Task wizard to create a Shutdown event as explained in this post. However, in the Conditions tab, set the condition in terms of time, when the computer should shut down. When you do that, the computer will automatically shut down after that much idle time has elapsed.
What to do if your computer is stuck on restarting?
Press and hold the power button for six to seven seconds until the PC shuts down, and there is nothing on the screen. If this is happening too often, i.e., PC is stuck on Restarting, you need to check for any hardware failure or software issue.
Thanks, Keith Hooker and Archie Christopher.
Thanks for the guide ! Is there a way to do this with any program ?
Try https://www.thewindowsclub.com/3-free-tools-shutdown-restart-windows-7-computer-fixed-times :)
Thanks for this! People like you make the internet great.
Would this also work for putting your pc to sleep? and if so, what would go in the program/script bar?
Shouldn’t the “-s” parameter be “-r” if the user wants to restart?
That’s correct. The article is written with shutting all the way down in mind and basically ignores the -r switch.
shutdown /? from any CMD prompt will give you a list of switches.
Thanks. Added a note towards the end.
What about restarting instead of shutting down? Whats the command for that
how to turn this opstion off cuz my chois was daly
Open Task Scheduler and delete that task.
Aren’t the flags /s /t 0 instead of -s -t 0? also I believe if you set a /t 0 it already forces it so /f is unnecessary.
which tab would i go under the delete the task?
So did you ever share the “quick” way of doing this in a few clicks? I want to use this regularly, but not on a set schedule.
I have limited access to my PC
however the task is working when I am logged in and active
The problem when I am on locked screen the task does not work.
Is there anyway to have the PC shutdown while it is on lock screen?
Thanks
Add the “-r” flag to the arguments instead of “-s” (which is shutdown).
Create a batch file on your desktop named “shutdown.bat” with the above shutdown command and switches. Double-click when you want to turn it your PC off.
You hit it on the head. I did your flags and worked like a charm.
Thanks This trick was awesome and also save lots of electricity bills
Hello Anand! Is there a way to start that schedule if the machine can’t ping one specific network equipment?
worked… great for restarting miners :D
thanks