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