Get the list of windows schedule task

Hello friends, 

i got the below from powershell.com that to get the list of schedule task, but is there any way where i can get the list of the task for couple of machines or for the machines from OU container like that along with who created that task etc etc ..

$service = New-Object -ComObject Schedule.Service
$service.Connect($env:COMPUTERNAME)

$folder = $service.GetFolder('\Microsoft\Windows\DiskDiagnostic')
$tasks = $folder.GetTasks(1) 

# Number of tasks in that container:
$count = $tasks.Count
"There are $count tasks"

# Task statistics:
$tasks | Select-Object -Property Name, Enabled, LastRunTime, LastTaskResult, NextRunTime

July 1st, 2013 8:22pm

thanks or your reply bill, is there a way i can export all the tasks and put it into one machine. like with above script i can get the details of all the schedule task but if i want to export all and then put it in one machine ? is there any simple way instead of manually doing the things .. Thanks 
July 1st, 2013 11:21pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics