Search notes:

PowerShell cmdLet get-scheduledTask

get-scheduledTask returns an array of Microsoft.Management.Infrastructure.CimInstance objects.
$i = 0
foreach ($task in (get-scheduledTask)) {


# if ($task.actions.length -gt 0)  # Seems always to be 1
  if ($task.actions.execute)
   {

  # "i: $($i)"
    "taskPath   : $($task.taskPath)"
    "taskName   : $($task.taskName)"
    "state      : $($task.state)"
    "triggers   : $($task.triggers)"
    "date       : $($task.date)"
    "description: $($task.description)"

    foreach ($action in $task.actions) {
      "    $($action.execute)"
      "    $($action.arguments)"
      #      $action.id
      #      $action.workingDirectory
      #      $action.psComputerName

    }
   '------------------------------------------'
   }
   $i++

}
Github repository about-PowerShell, path: /cmdlets/scheduledTask/get/tasks-and-actions.ps1

See also

Powershell command noun: scheduledTask

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1758209675, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/command-inventory/noun/scheduledTask/get(69): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78