I am pleased to announce the release of the OZOTaskScheduler PowerShell module. This module provides a lightweight PowerShell interface for managing Windows Task Scheduler tasks. It is designed to create, update, enable, disable, export, and remove scheduled tasks using simple function calls and JSON task definitions.
This module is especially useful for automating the management of Windows scheduled tasks with tools like Tanium that operate as the local SYSTEM user and often allow only a single line command for execution. The New-OZOScheduledTask and Set-OZOScheduledTask functions can optionally take a compressed JSON string that defines the task.
Functions
- Disable-OZOScheduledTask disables a task, if found.
- Enable-OZOScheduledTask enables a task, if found.
- Export-OZOScheduledTask exports a task to JSON, if found.
- Get-OZOScheduledTask get an object representing an existing task, if found.
- New-OZOScheduledTask creates a new scheduled task from a JSON file or a JSON string.
- Remove-OZOScheduledTask removes a task, if found.
- Set-OZOScheduledTask updates an existing scheduled task from a JSON file or a JSON string.
For installation and usage, please see README.md. You can find a link to this module and others in the Publication Catalog.