查询任务计划

该方法只支持Win7及其以上系统,不支持Windows 2003

1 $Schedule = New-Object -com "Schedule.Service"
2 $Schedule.Connect() 
3 $tasks = $Schedule.GetFolder("\").GetTasks(0)
4 $tasks | Format-Table

 

posted on 2014-11-25 14:50  momingliu11  阅读(384)  评论(0编辑  收藏  举报