Solved Shutdown Timer


Pocah

Active member
Member
Local time
11:20 AM
Posts
118
OS
Win 11
Type this in to Windows Store and it comes back with a wealth of timers to automatically shutdown a PC after a set time.
The problem I have, is that I want one that automatically starts as soon as I start the PC.
It's easy enough to create a task that does the same thing, but I also need to be able to manually reset the timer, and that's a bit difficult with an ordinary task.
I tried using some of the timers in Store, but can't find one that launches and immediately starts counting down without the manual press of a "start" button.
Anyone any ideas?
 

My Computer

System One

  • OS
    Win 11
    Computer type
    PC/Desktop
    CPU
    12700
    Memory
    32gb
    Graphics Card(s)
    3070ti
    Sound Card
    -
    Screen Resolution
    3840x1600, 2560x1080
I have a batch script which can be used to schedule shutdown and cancel when needed, you can modify it you want.
 

Attachments

  • Schedule_Shutdown.bat
    1.5 KB · Views: 1

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
Just a little note on that batch file @FreeBooter : There is already an environment variable called %TIME%. I would use a different name.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 [rev. 3447]
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Intel Core i7-1260P, 2100 MHz
    Motherboard
    NUC12WSBi7
    Memory
    64 GB
    Graphics Card(s)
    Intel Iris Xe
    Sound Card
    built-in Realtek HD audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840x2160 @ 60Hz
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Keyboard
    CODE 104-Key Mechanical Keyboard with Cherry MX Clears
  • Operating System
    Linux Mint 21.2 (Cinnamon)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC8i5BEH
    CPU
    Intel Core i5-8259U CPU @ 2.30GHz
    Memory
    32 GB
    Graphics card(s)
    Iris Plus 655
    Keyboard
    CODE 104-Key Mechanical Keyboard - Cherry MX Clear
Ah,
I sorted it.
One of the apps, ShutdownTimer, has command line options. I had an issue in that Microsoft does it's best to hide apps, but I eventually found the standalone version of the app (not a Microsoft App) and ran if from a Startup Task. Poof! It works. It now powers up when the PC powers up, and automatically sets a 1 hour shutdown and starts itself... so the PC shuts down 1 hour after it powers up.
:D
Because the app is on the screen it can be stopped or the timer edited. Woo!
 
Last edited:

My Computer

System One

  • OS
    Win 11
    Computer type
    PC/Desktop
    CPU
    12700
    Memory
    32gb
    Graphics Card(s)
    3070ti
    Sound Card
    -
    Screen Resolution
    3840x1600, 2560x1080
@Pocah

Would you mind telling us which one of the zillion Shutdown Timer apps you selected, and where you found it?
 

My Computers

System One System Two

  • OS
    11 Pro 23H2 22631.3447
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M920S SFF
    CPU
    i7-9700 @ 3.00GHz
    Motherboard
    Lenovo 3132
    Memory
    32GBDDR4 @ 2666MHz
    Graphics Card(s)
    Intel HD 630 Graphics onboard
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    LG E2442
    Screen Resolution
    1920x1080
    Hard Drives
    1 x Samsung 970 EVO PLUS 500GB NVMe SSD, 1 x WD_BLACK SN770
    250GB NVMe SSD (OS and programs), 1 x WD_BLACK SN770
    500GB NVMe SSD (Data)
    Case
    Lenovo SFF
    Keyboard
    Cherry Stream TKL JK-8600US-2 Wired
    Mouse
    LogiTech M510 wireless
    Internet Speed
    Fast (for fixed wireless!)
    Browser
    Chrome, sometimes Firefox
    Antivirus
    Malwarebytes Premium & Defender (working together beautifully!)
  • Operating System
    11 Pro 23H2 22631.3527
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M920S SFF
    CPU
    i5-8400 @ 2.80GHz
    Motherboard
    Lenovo 3132
    Memory
    32GB DDR4 @ 2600MHz
    Graphics card(s)
    Intel HD 630 Graphics onboard
    Sound Card
    Realtek High Definition Audio onboard
    Monitor(s) Displays
    LG FULL HD (1920x1080@59Hz)
    Screen Resolution
    1920 x 1080
    Hard Drives
    1 x Samsung 970 EVO PLUS NVMe; 1 x Samsung 980 NVMe SSD
    Case
    Lenovo Think Centre SFF
    Mouse
    LogiTech M510 wireless
    Keyboard
    Cherry Stream TKL JK-8600US-2 Wired
    Internet Speed
    Fast (for fixed wireless!)
    Browser
    Chrome
    Antivirus
    Malwarebytes Premium and MS Defender, beautiful together
@Pocah

Would you mind telling us which one of the zillion Shutdown Timer apps you selected, and where you found it?

Shuitdown Timer Classic.

It is available from the Microsoft store, but I also found it here...


and someplace else, discovered these command line options for it....

You can also use the command line to start the Shutdown Timer with specific arguments and settings.In PowerShell or CMD navigate to the folder where the executable is located.


Then type .\ShutdownTimerClassic.exe and add the arguments you want after this:


Argument Description

/SetTime <time> Sets the time for the countdown. Either type in the seconds, use HH:mm:ss or HH:mm.

/SetAction <action> Sets the power action which will be executed after the countdown reached zero.
Type in the exact name as seen in the UI (eg: Shutdown, Restart or Sleep. Do not use shutdown Reboot or SLEEP)

/SetMode <mode> Sets the control mode. Modes available:
Prefill: Prefills settings but let user manually change them too. Timer won't start automatically.
Lock: Overrides settings so the user can not change them. Timer won't start automatically.
Launch: Overrides settings and starts the timer.
ForcedLaunch: Overrides settings and starts the timer. Disables all UI controls and exit dialogs.

/Graceful Will use the graceful mode if available. This means that your computer will do a normal, interruptible, shutdown.

/AllowSleep Allows your computer to go to sleep while the countdown is active.

/Background Runs the countdown in the background.
This is not a silent mode, the user will still get notifications and can use the tray menu.

/NoSettings Uses temporary ephemeral settings and ignores the `settings.json` file.
 

My Computer

System One

  • OS
    Win 11
    Computer type
    PC/Desktop
    CPU
    12700
    Memory
    32gb
    Graphics Card(s)
    3070ti
    Sound Card
    -
    Screen Resolution
    3840x1600, 2560x1080

Latest Support Threads

Back
Top Bottom