Before anyone says this is a duplicate, I already checked here , here , here , here and a few other resources, including the MS Scheduler class documentation .
I wanted to be able to list scheduled tasks on my servers using the C # program that I am developing. Some suggested the schtasks.exe MS program, others a third-party library that seems old and only works with the .NET Framework 2.0 and other MS Task Scheduler Class , which seems to be protected, and I haven't seen any example yet, so I understand how can I use it, while others even suggested reading XML files on each remote computer in the C: \ Windows \ System32 \ Tasks folder.
My question is: are tasks on Windows difficult to work using the built-in VS class? Do I have to jump through hoops to make something (sort of) stupid, how to list the tasks already planned on the machine?
Thank,
EDIT:
I ended up using the Process class and ran the schtasks.exe file for all servers. Not quite what I was looking for, but it works. If someone needs a code, just write me and I will post it here. Thank.
source
share