v1.3.1: Add Install-ScheduledTask.ps1 for service deployment

- Creates scheduled task that runs as SYSTEM at boot
- Runs with highest privileges, no user login required
- Auto-restarts on failure (3 attempts, 1 min interval)
- Runs hidden (no console window)
- Supports -Uninstall to remove task

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
cproudlock
2025-12-12 08:41:34 -05:00
parent 9a8b16e0d4
commit afad8e0c56
2 changed files with 143 additions and 2 deletions

View File

@@ -25,9 +25,30 @@ This utility monitors a folder for DNC files and automatically strips specified
**Note:** The batch file automatically requests Administrator privileges via UAC prompt.
### Run at Startup (Optional)
### Run as Scheduled Task (Recommended)
To run automatically at Windows startup:
For production use, install as a scheduled task that runs as SYSTEM with admin rights:
```powershell
# Run as Administrator
.\Install-ScheduledTask.ps1
# With custom settings
.\Install-ScheduledTask.ps1 -WatchFolder "D:\DNC\Programs" -FileFilter "*.nc"
# To remove
.\Install-ScheduledTask.ps1 -Uninstall
```
This creates a task that:
- Starts at system boot (before any user logs in)
- Runs as SYSTEM with highest privileges
- Auto-restarts if it crashes
- Runs hidden (no console window)
### Run at User Login (Alternative)
To run when a specific user logs in:
1. Press `Win + R`, type `shell:startup`, press Enter
2. Create a shortcut to `Run-eDNCFix.bat` in the Startup folder
@@ -131,6 +152,7 @@ The script uses exponential backoff (500ms → 1s → 2s → 4s → up to 16s) f
| Version | Date | Changes |
|---------|------|---------|
| 1.3.1 | 2025-12-12 | Added Install-ScheduledTask.ps1 for running as SYSTEM service |
| 1.3.0 | 2025-12-12 | Fixed header UI, live status/stats, auto-elevate to Administrator |
| 1.2.1 | 2025-12-12 | Added GE Aerospace ASCII banner |
| 1.2.0 | 2025-12-12 | Immediate processing: 50ms delay, aggressive retry (100ms+), 15 attempts |