Why NetScheduleJobAdd and NetScheduleJobEnum Lib "netapi32.dll" will use "SYSTEM" and not a User account
Posted on 2004-10-14
I'm desperatly trying to enumerate sceduled tasks/jobs on a local computer.
But all aproaches i've tried will end up in only creating and enumerating jobs by an owner called "SYSTEM".
I cann't get them to use the User account as the shortcut "Add Job" in Windows\Tasks will.
The enumeration will only return jobs sceduled by "SYSTEM" and not by other user accounts.
I've tried different programming languages (Delphi, VB 6.0), searched at Microsoft.com, and questioned a lot of search engines.
I'v defined prototypes of NetScheduleJobEnum and NetScheduleJobAdd API using "netapi32.dll" running under Windows2000 or XP
This issue was already on ExpertsExchange, but no explanation nor solution is provided yet...