#67986·salt

[FEATURE REQUEST] Allow creation of V1 Windows Scheduled tasks

Author: nychefCreated Apr 24, 2025Updated Sep 29, 2026
LabelsFeatureneeds-triage

Is your feature request related to a problem? Please describe. I want to be able to add scheduled tasks for windows snapshots and have it show as enabled in the shadow copy manager. To do this a V1 task is necessary.

Describe the solution you'd like add a compatibility argument to win_task.create_task

Additional context here is an example of what the code could look like:

def create_task(
    name, location="\\", user_name="System", password=None, force=False, compatibility=2, **kwargs
):
   
    .
    .
    .

def edit_task(
    name=None,
    location="\\",
    # General Tab
    user_name=None,
    password=None,
    description=None,
    enabled=None,
    hidden=None,
    # Conditions Tab
    run_if_idle=None,
    idle_duration=None,
    idle_wait_timeout=None,
    idle_stop_on_end=None,
    idle_restart=None,
    ac_only=None,
    stop_if_on_batteries=None,
    wake_to_run=None,
    run_if_network=None,
    network_id=None,
    network_name=None,
    # Settings Tab
    allow_demand_start=None,
    start_when_available=None,
    restart_every=None,
    restart_count=3,
    execution_time_limit=None,
    force_stop=None,
    delete_after=None,
    multiple_instances=None,
    compatibility=None,
    **kwargs,
):
    .
    .
    if compatibility:
            task_definition.Settings.Compatibility = compatibility

Please Note If this feature request would be considered a substantial change or addition, this should go through a SEP process here https://github.com/saltstack/salt-enhancement-proposals, instead of a feature request.