Skip to content

Instantly share code, notes, and snippets.

Created October 4, 2017 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/37ee0fd5f85a486e93ac248dfce45696 to your computer and use it in GitHub Desktop.
Save anonymous/37ee0fd5f85a486e93ac248dfce45696 to your computer and use it in GitHub Desktop.
my_task:
module.run:
task.create_task:
- name: 'my-task'
- user_name: 'System'
- action_type: 'Execute'
- cmd: 'net start my-service'
- trigger_type: 'Daily'
- start_date: '2017-1-20'
- start_time: '3:00AM'
- repeat_interval: '1 hour'
- repeat_duration: '1 day'
- execution_time_limit: '30 minutes'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment