Skip to content

[FEATURE REQUEST] Allow creation of V1 Windows Scheduled tasks #67986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nychef opened this issue Apr 24, 2025 · 1 comment
Open

[FEATURE REQUEST] Allow creation of V1 Windows Scheduled tasks #67986

nychef opened this issue Apr 24, 2025 · 1 comment
Labels
Feature new functionality including changes to functionality and code refactors, etc. needs-triage

Comments

@nychef
Copy link

nychef commented Apr 24, 2025

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

Describe alternatives you've considered
none

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.

@nychef nychef added Feature new functionality including changes to functionality and code refactors, etc. needs-triage labels Apr 24, 2025
Copy link

welcome bot commented Apr 24, 2025

Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!

@nychef nychef changed the title [FEATURE REQUEST] Allow creation of V1 Windows Schedued tasks [FEATURE REQUEST] Allow creation of V1 Windows Scheduled tasks Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature new functionality including changes to functionality and code refactors, etc. needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant