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-ComObjectSchedule.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-PropertyName, Enabled, LastRunTime, LastTaskResult, NextRunTime