Python check for Completed and failed Task Windows scheduler

前端 未结 2 557
夕颜
夕颜 2020-12-06 08:51

Does anyone know of a way or a resource I can look at to be able to check the status of all my Windows tasks I have in the task scheduler? I would like to see if that see if

2条回答
  •  孤街浪徒
    2020-12-06 09:09

    task scheduler can be accessed from command line using schtasks and at

    schtasks: https://technet.microsoft.com/en-us/library/cc772785%28v=ws.10%29.aspx

    at: https://technet.microsoft.com/en-us/library/cc755618%28v=ws.10%29.aspx

    run schtasks /query from python using subprocess.check_output see Running windows shell commands with python

    https://technet.microsoft.com/en-us/library/cc722006.aspx

    The tasklist command lists all running programs and services or in powershell get-process

    https://superuser.com/questions/914782/how-do-you-list-all-processes-on-the-command-line-in-windows

提交回复
热议问题