PowerShell Scheduled Task Creation Script

PowerShell Scheduled Task Creation Script

v1
Model: GPT-4
Difficulty: Advanced
Likes: 0
Copies: 0
automationITPowerShellscheduled taskWindows

Prompt

Write a PowerShell script that creates a scheduled task to run [script/exe] every [interval]. Must include: triggers, action, user context, and error logging.

Why It Works

Bulletproof way to automate recurring jobs, central to fleet management.

Example Output

Task: Run backup.ps1 daily at 2am. Script: Register-ScheduledTask. Log: C:TaskLog.txt.

Suggest an improvement

Log in to submit omissions or improvements.