Skip to content

Instantly share code, notes, and snippets.

@thed06
thed06 / COM-ScheduledTasks.ps1
Last active October 30, 2018 22:34
Scheduled Tasks in PowerShell Version 2 via Schedule.Service COM Object
function Install-ScheduledTask {
<#
.SYNOPSIS
Install a scheduled task using Schedule.Service COM object.
.DESCRIPTION
This function installs a scheduled task using Schedule.Service COM object.
.PARAMETER TaskPath
String. The path of the task.
.PARAMETER TaskName