Group: Network Management - Library: netapi32
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
NET_API_STATUS NetScheduleJobAdd(
LPCWSTR Servername,
LPBYTE Buffer,
LPDWORD JobId
); DECLARE SHORT NetScheduleJobAdd IN netapi32;
STRING Servername,;
STRING @ Buffer,;
INTEGER @ JobId Servername [in] Pointer to a constant string that specifies the DNS or NetBIOS name of the remote server on which the function is to execute. If this parameter is NULL, the local computer is used.
Buffer [in] Pointer to an AT_INFO structure describing the job to submit.
JobId [out] Pointer that receives a job identifier for the newly submitted job. This entry is valid only if the function returns successfully.
If the function succeeds, the return value is NERR_Success (0).
This function requires that the schedule service be started at the computer to which the job is submitted.
Only members of the Administrators local group can successfully execute the NetScheduleJobAdd function on a remote server.
Home