|
|
|||||||
FYI, I wanted to enumerate scheduled tasks on remote computers. With some help of Shane and Jens I created a script which i can use to schedule a task on multiple computers: ScheduleTask - Array problem In this script I use Scheduletask(). Since JT.exe is required for this UDF I thought JT must do the job but it fails... Quote: ..so I created this script and have used it on a WinXP PC: Code:
It works but it only shows tasks scheduled by AT and it doesn't show tasks that are scheduled by JT.exe, Schtasks or the Scheduled Tasks GUI. It must be a WMI / Win32_ScheduledJob problem because the following VBscript gives the same output: Code: strComputer = "." Quote: The only tool wich gives all tasks and works on remote pc's is the XP schtasks command. unfortunately you cann't use it with previous versions of Windows D:\>schtasks /query /S comp2 TaskName Next Run Time Status ==================================== ======================== =============== test 17:00:00, 9-1-2003 Maybe it is an easy problem and did I used the wrong JT parameters.. |
||||||||
|
|
|||||||
I have a version of schtasks.exe that works with Win2k. If you are interested, reply with your email address. |
||||||||
|
|
|||||||
Which is a byte-hacked version of the Windows XP version as detailed in http://www.jsiinc.com/SUBK/tip5300/rh5335.htm However, the advantage of JT.EXE is that it works under any Windows that has the Task Scheduler installed and we already have a complete set of UDFs to manage scheduled tasks either via the ScheduleTask() UDF for simple schedules or the tsControl() UDF collection for advanced task scheduling. |
||||||||
|
|
|||||||
Quote:This is by design and well documented on MSDN. The WMI object can only interact with AT-type tasks but not task scheduled otherwise, e.g. via Task Scheudler or JT.EXE. |
||||||||
|
|
|||||||
Jens... if you have installed XP SP1, the version of schtasks.exe is slightly different and the link you provide no longer works. Co, offer still stands if you need it. |