PowerShell Scheduled Task Creation Script

v1
Model: GPT-4 Level: Advanced πŸ‘ 0 πŸ“‹ 0
automationITPowerShellscheduled taskWindows
Prompt 24 words

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

Useful prompt but the real issue is bigger? That usually means the workflow or team mechanism needs attention, not just the wording.

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 suggest improvements.

Related Prompts