

Network_name ( str) - Sets the name of a network profile. Network_id ( guid) - GUID value that identifies a network profile. Run_if_network ( bool) - Boolean value that indicates that the Task Scheduler will run the Wake_to_run ( bool) - Boolean value that indicates that the Task Scheduler will wake theĬomputer when it is time to run the task. Stop_if_on_batteries ( bool) - Boolean value that indicates that the task will be stopped if the Idle_restart ( bool) - Boolean value that indicates whether the task is restarted when theĬomputer cycles into an idle condition more than once.Īc_only ( bool) - Boolean value that indicates that the Task Scheduler will launch the The task if the idle condition ends before the task is completed. Idle_stop_on_end ( bool) - Boolean value that indicates that the Task Scheduler will terminate Triggers and Actions cannot be edited yet. edit_task ( name = None, location = '\\', user_name = None, password = None, description = None, enabled = None, hidden = None, 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, 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, ** kwargs ) ¶Įdit the parameters of a task. Str: A string with the error message if there is an error Return typeĪrgumentValueError - If arguments are invalid Run whether the user is logged in or not, but is currently not Password ( str) - The password to use for authentication. User_name ( str) - The user account under which to run the task. Xml_path ( str) - The path to an XML file on the local system containing the xml thatĭefines the task.


Xml_text ( str) - A string of xml representing the task to be created. Default is \ which is the root for the task scheduler

Location ( str) - A string value representing the location in which to create the This will be displayed in the task scheduler. create_task_from_xml ( name, location = '\\', xml_text = None, xml_path = None, user_name = 'System', password = None ) ¶Ĭreate a task based on XML. Salt 'minion-id' task.create_task user_name =System force =True action_type =Execute cmd = 'del /Q /S C:\\Temp' trigger_type =Once start_date = start_time = 01:00
