- Home
- Skills
- Workflow Automation
- Scheduled Task Builder
Works with the AI Agents you already use
Scheduled Task Builder
Generates validated Windows Scheduled Task XML and PowerShell installation scripts.
$2.99
Scheduled Task Builder
Example session with this skill installed
Create a scheduled task named 'AppSync' that runs C:\bin\sync.exe -force every Monday and Thursday at 11:00 PM as SYSTEM with highest privileges.
- Read your context and instructions
- Compiled the scheduled task builder
I have generated the Windows Scheduled Task definition and the corresponding PowerShell installation script for 'AppSync'. The XML follows the Task Scheduler 1.2 schema, and the PowerShell script uses the Register-ScheduledTask cmdlet.
Task Definition Files
Task XML (AppSync.xml)
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Description>AppSync scheduled task</Description>
</RegistrationInfo>
<Triggers>
<CalendarTrigger>
<StartBoundary>2023-01-01T23:00:00</StartBoundary>
<Enabled>true</Enabled>
<ScheduleByWeek>
<DaysOfWeek>
<Monday />
<Thursday />
</DaysOfWeek>
<WeeksInterval>1</WeeksInterval>
</ScheduleByWeek>
</CalendarTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<UserId>S-1-5-18</UserId>
<RunLevel>HighestAvailable</RunLevel>
</Principal>
</Principals>
<Settings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
<ExecutionTimeLimit>PT72H</ExecutionTimeLimit>
<Enabled>true</Enabled>
</Settings>
<Actions Context="Author">
<Exec>
<Command>C:\bin\sync.exe</Command>
<Arguments>-force</Arguments>
</Exec>
</Actions>
</Task>
PowerShell Installer (Install-AppSync.ps1)
$action = New-ScheduledTaskAction -Execute "C:\bin\sync.exe" -Argument "-force"
$trigger = New-ScheduledTaskTrigger -Weekly -DaysOfWeek Monday, Thursday -At 11:00PM
$principal = New-ScheduledTaskPrincipal -UserId "SYSTEM" -RunLevel Highest
$settings = New-ScheduledTaskSettingsSet
Register-ScheduledTask -TaskName "AppSync" -Action $action -Trigger $trigger -Principal $principal -Settings $settings -Force
Next steps
- To install via XML, run:
schtasks /Create /XML AppSync.xml /TN "AppSync". - To install via PowerShell, run:
./Install-AppSync.ps1. - Verify the task in Task Scheduler (taskschd.msc) to confirm the next run time.
Connects securely to your tools. The creator never sees your data.
About this skill
Writing Windows Scheduled Tasks by hand is error-prone. One syntax error in the XML or a missing property in a PowerShell cmdlet causes the import to fail. This skill generates validated Task Scheduler definitions from plain-language requirements.
What it does
- XML Generation produces schema-compliant XML files for use with
schtasks.exeor manual Import-Task actions. - PowerShell Scripting creates
Register-ScheduledTaskscripts for automated deployment across multiple machines. - Trigger Logic handles complex scheduling including daily, weekly, monthly, at logon, or system startup.
- Security Configuration configures execution under SYSTEM or specific service accounts with highest privileges toggles.
- Reliability Policy defines restart-on-failure behavior and execution settings for users who are not logged on.
- Structural Validation runs the output through a well-formedness check and PowerShell AST parser before delivery.
How it works
- Provide the task name, the command to execute, and any necessary arguments.
- Define the trigger type such as a specific time, a recurring interval, or a system event.
- Specify the execution context like the run-as account and privilege level.
- Review the generated XML and PowerShell files for deployment.
Frameworks & tools
The skill generates native Windows XML schema definitions and PowerShell script files compatible with Windows PowerShell 5.1 and PowerShell 7+.
Why this beats prompting it yourself
Standard LLM prompts often hallucinate XML tags or mix up PowerShell parameter sets. This skill uses a structured builder to ensure every generated file follows the strict Windows Task Scheduler schema, preventing "General Access Denied" or "Invalid Format" errors during import.
Use cases
- Migrating Linux cron jobs to a Windows Server environment.
- Automating nightly database backups or log rotations.
- Scheduling system maintenance scripts to run at logon or startup.
- Deploying standardized tasks across a fleet via configuration management.
Known limitations
Does not embed passwords for non-system accounts. Deployment of non-system tasks requires manual credential entry at install time.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.
Requires manual credential entry for non-system accounts during installation. Generated XML must be imported via schtasks or PowerShell.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 month ago