The following example gets information about the configured scheduled tasks.


Code Sample

# Lists basic information about each scheduled task.

$tasks = $administration.GET_ScheduledTasks();

foreach ($task in $tasks)

{

    Write-Host $task.DisplayName;

    Write-Host $task.Identifier;

    Write-Host $task.TaskType;

    Write-Host



# Gets the full details of the scheduled task with the specified identifier.

$task = $administration.GET_ScheduledTask("22176cac-8f38-49ea-aca4-6a579d333853");


# Gets the unique identifiers of the scheduled tasks that are due to execute.

$administration.GET_ScheduledTasksToExecute();