Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Scheduled Task Builder

    1

    Generates validated Windows Scheduled Task XML and PowerShell installation scripts.

    $2.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Scheduled Task Builder

    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

    1. To install via XML, run: schtasks /Create /XML AppSync.xml /TN "AppSync".
    2. To install via PowerShell, run: ./Install-AppSync.ps1.
    3. 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.exe or manual Import-Task actions.
    • PowerShell Scripting creates Register-ScheduledTask scripts 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

    1. Provide the task name, the command to execute, and any necessary arguments.
    2. Define the trigger type such as a specific time, a recurring interval, or a system event.
    3. Specify the execution context like the run-as account and privilege level.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Permissions

    Terminal / Shell
    Listed1 month ago

    What's inside

    Frequently Asked Questions

    The skill generates both a schema-compliant XML file for manual import via Task Scheduler and a ready-to-run PowerShell script using the `Register-ScheduledTask` cmdlet for automated deployment.

    Yes, the generated scripts are fully compatible with both legacy Windows PowerShell 5.1 and modern PowerShell 7+, ensuring they work across various Windows Server and Desktop versions.

    Standard LLMs often hallucinate XML tags or mix up complex PowerShell parameters; this skill uses a specialized builder to ensure the output strictly adheres to the Windows Task Scheduler schema, preventing import errors.

    For security reasons, the skill does not embed plain-text passwords; it configures the task structure, but you will be prompted to provide credentials during the final installation if using a non-system account.

    Absolutely, the skill supports complex logic including recurring intervals (daily/weekly/monthly), system startup triggers, logon events, and specific 'Restart on failure' reliability policies.

    New in Workflow Automation