MU
← All Projects2.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
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
| Challenge | Solution |
|---|---|
| Re-running script duplicates tasks | Delete existing task first with 2>nul to suppress errors |
| Accidental data loss | 60-second warning with /c message flag |
| Task requires admin | Clear error message prompting admin re-run |
| User needs escape hatch | Display "shutdown /a" cancel command on success |
Process Flow
Loading diagram...