Auto Shutdown


TheLastFrontier

Well-known member
Local time
10:17 PM
Posts
54
OS
Win11
OK So I need to shut down every day at 1AM as I sometimes tend to fall asleep around this time and don't always shut down before hand so I want my computer to shut down at 1AM every single day.

That said I know where to set this up but a couple of questions about arguments and such.
1) So a number of videos had different arguments that they used but unsure which I actually need. The AI Response gave me these arguments​
/s /f /t 0
The only one of the videos I watch they seem to agree on is /f to force the shut down of programs for a clean shut down so I assume I at least need the /f in the arguments. But what else is needed if anything for a daily shut down at 1AM​
2) The second question is on the date/time setting page there is a check box for Synchronize across time zones. What does this do exactly especially since windows auto update feature on the date and time? I ask as we're heading to Japan for a month early next year and want to make sure this is still working.​
3) This question is sort of a follow up question about time zones. The first week I am in Japan my body is just trying to readjust to the new time zone which has me up at all weird hours of the day and night. Is there a way to pause or skip a planned shut down short of removing the task?​
4) The last question is with this being a shut down command will this give me a warning like lets say a 5 or 10 minute warning in case I am still awake I can save and or shut down anything prior to the shut down is is there a way in the arguments to give me a set warning time frame of say 10 minutes and if so what us that argument command?​
Thanks​
 
Windows Build/Version
Windows 11

My Computer

System One

  • OS
    Win11
If you want the computer to shut down at 1AM no matter where you are, then you would not sync across time zones. That setting sets the time relative to UTC, so the task will occur at the same actual time every day. Leaving it off lets the task run at the same time on the clock, relative to where you are in the world at the time. That is, leaving it off uses local time.

As far as pausing or skipping the shut down, you would have to disable the scheduled task. Once the shutdown command is run, you can abort it, but you've given yourself no warning with that zero timeout value, so you won't have a chance to abort it. Abort is shutdown /a, by the way.

And for number 4, no, there will be no warning. Your arguments for the shutdown command are force a shutdown (/f) with zero timeout (/t 0). If you want a warning period, don't use zero (0) in the timeout argument.
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Core i7-1260P
    Motherboard
    NUC12WSBi7
    Memory
    64 GB Micron PC4-25600
    Graphics Card(s)
    Intel Iris Xe Graphics
    Sound Card
    on-board Realtek HD Audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840 x 2160
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Crucial MX500 2 TB
    Antivirus
    Microsoft Defender
If you want the computer to shut down at 1AM no matter where you are, then you would not sync across time zones. That setting sets the time relative to UTC, so the task will occur at the same actual time every day. Leaving it off lets the task run at the same time on the clock, relative to where you are in the world at the time. That is, leaving it off uses local time.

As far as pausing or skipping the shut down, you would have to disable the scheduled task. Once the shutdown command is run, you can abort it, but you've given yourself no warning with that zero timeout value, so you won't have a chance to abort it. Abort is shutdown /a, by the way.

And for number 4, no, there will be no warning. Your arguments for the shutdown command are force a shutdown (/f) with zero timeout (/t 0). If you want a warning period, don't use zero (0) in the timeout argument.
Roger on the first 2 seconds. So assuming I merely use /f will this give me a warning if so how much of a warning or what do I need to add to the arguments to set up such a warning? being I will be running shutdown as the program/script do I nee the /s or not? as I mentioned watched several videos on this as some of the Indian video were hard to understand the speaker due to the accent and such but each one seemed to have their own argument set up for their purpose so want to make sure I have the right arguments in there. Or would I use /t 5 or /t 10 and is that number minutes or seconds so I add the right figure in there
 

My Computer

System One

  • OS
    Win11
The /s switch tells shutdown to do a shutdown, as opposed to restart or some other thing. You'd have to try the /f switch to see if you get a warning. I don't have a PC I'm willing to try it on at the moment. :)

Save all of your other work, and then open, for example, Notepad and type some text, leaving it unsaved. Run shutdown /s /f, and see if you lose your Notepad work. (Actually Notepad might be a bad test, because it auto-saves.)
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Core i7-1260P
    Motherboard
    NUC12WSBi7
    Memory
    64 GB Micron PC4-25600
    Graphics Card(s)
    Intel Iris Xe Graphics
    Sound Card
    on-board Realtek HD Audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840 x 2160
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Crucial MX500 2 TB
    Antivirus
    Microsoft Defender
The /s switch tells shutdown to do a shutdown, as opposed to restart or some other thing. You'd have to try the /f switch to see if you get a warning. I don't have a PC I'm willing to try it on at the moment. :)

Save all of your other work, and then open, for example, Notepad and type some text, leaving it unsaved. Run shutdown /s /f, and see if you lose your Notepad work. (Actually Notepad might be a bad test, because it auto-saves.)
for the most part honestly though thinking of this not sure there is any work to really ever save as emails also leave draft versions so even that sort of auto saves. And that's really the only thing so thinking that maybe save isn't such an issue after all.

Thanks for the input!!!
 

My Computer

System One

  • OS
    Win11
The /s switch tells shutdown to do a shutdown, as opposed to restart or some other thing. You'd have to try the /f switch to see if you get a warning. I don't have a PC I'm willing to try it on at the moment. :)

Save all of your other work, and then open, for example, Notepad and type some text, leaving it unsaved. Run shutdown /s /f, and see if you lose your Notepad work. (Actually Notepad might be a bad test, because it auto-saves.)
OK just tested it and worked as needed. It does pop up with a 1 minute warning but unsure if I could do anything in that time frame to save or not but not really an issue after I was rethinking it above!

Thanks again!
 

My Computer

System One

  • OS
    Win11
Back
Top Bottom