C# - How to list Scheduled Tasks for a specific user with the TaskSchedular Class

前端 未结 3 1419
半阙折子戏
半阙折子戏 2021-01-14 03:31

I was wondering if someone could help me, I am trying to list Scheduled Tasks from a specific user (Admin) on the local computer using the TaskScheduler Class (http://www.co

3条回答
  •  悲哀的现实
    2021-01-14 04:28

    This only works for tasks created and configured for Windows 2003, XP, Windows 2000.

    If you select for Windows 7, Windows 2008 or Windows Vista, Windows 2008 the jobs don't get stored with a .job extension in the C:\Windows\Tasks directory. They get stored in C:\Windows\System32\Tasks directory with no file extension and in XML format.

    The DLL fails to retrieve those configured for Windows 7, Windows Vista, Windows 2008.

提交回复
热议问题