Enumerates all the scheduled tasks on a computer. Note: WMI can only enumerate scheduled tasks created using the Win32_ScheduledJob class or the At.exe utility. It cannot enumerate tasks created using the Task Scheduler.

This script was tested using Kixtart 2001 (412) for Microsoft Windows, available from Kixtart.org.

Kixtart
Edit|Remove
$strComputer = "."
$objWMIService = GetObject("winmgmts:\\"+ $strComputer + "\root\cimv2")
$colItems = $objWMIService.ExecQuery("Select * from Win32_ScheduledJob")
For Each $objItem in $colItems
    ? "Caption:" + $objItem.Caption
    ? "Command:" + $objItem.Command
    ? "Days Of Month:" + $objItem.DaysOfMonth
    ? "Days Of Week:" + $objItem.DaysOfWeek
    ? "Description:" + $objItem.Description
    ? "Elapsed Time:" + $objItem.ElapsedTime
    ? "Install Date:" + $objItem.InstallDate
    ? "Interact With Desktop:" + $objItem.InteractWithDesktop
    ? "Job Id:" + $objItem.JobId
    ? "Job Status:" + $objItem.JobStatus
    ? "Name:" + $objItem.Name
    ? "Notify:" + $objItem.Notify
    ? "Owner:" + $objItem.Owner
    ? "Priority:" + $objItem.Priority
    ? "Run Repeatedly:" + $objItem.RunRepeatedly
    ? "Start Time:" + $objItem.StartTime
    ? "Status:" + $objItem.Status
    ? "Time Submitted:" + $objItem.TimeSubmitted
    ? "Until Time:" + $objItem.UntilTime
Next