September 2018
Beginner to intermediate
214 pages
5h 53m
English
Windows hosts can be time-managed by scheduling future tasks using this module. It is a way to create, edit, and delete Windows-scheduled tasks. The following is an example of task scheduling on a playbook:
- name: schedule running a PowerShell script a specific time win_scheduled_task: name: PowerShellscript description: Run a script at a specific time actions: - path: C:\Windows\System32\WindowsPowerShell \v1.0\powershell.exe arguments: -ExecutionPolicy Unrestricted -NonInteractive -File triggers: - type: logon state: present enabled: yes
Read now
Unlock full access