查询任务计划
该方法只支持Win7及其以上系统,不支持Windows 2003
1 $Schedule = New-Object -com "Schedule.Service" 2 $Schedule.Connect() 3 $tasks = $Schedule.GetFolder("\").GetTasks(0) 4 $tasks | Format-Table
该方法只支持Win7及其以上系统,不支持Windows 2003
1 $Schedule = New-Object -com "Schedule.Service" 2 $Schedule.Connect() 3 $tasks = $Schedule.GetFolder("\").GetTasks(0) 4 $tasks | Format-Table