MU
← All Projects
2.3

Daily Shutdown Scheduler

Robotic Process Automation

A Windows batch utility that creates a scheduled task to automatically shutdown the computer at 1:00 AM daily, with a 60-second warning to save work.

Technology Stack
Windows Batchschtasks.exeWindows Task Schedulershutdown.exe
System Architecture
Loading diagram...
Specifications
  • Idempotent Setup: Deletes existing task before creating, safe to re-run
  • Graceful Warning: 60-second countdown with "Save your work!" message
  • Elevated Privileges: Runs with highest privilege level for reliability
  • User Feedback: Clear success/error messages with cancel instructions
  • Zero Dependencies: Pure batch script, no external tools required
Design Decisions
ChallengeSolution
Re-running script duplicates tasksDelete existing task first with 2>nul to suppress errors
Accidental data loss60-second warning with /c message flag
Task requires adminClear error message prompting admin re-run
User needs escape hatchDisplay "shutdown /a" cancel command on success
Process Flow
Loading diagram...