JohnQJohnQ
Starting to like KiXtart
Registered: 2003-03-04
Posts: 171
When scheduling a task using jt.exe, does anyone know how to force a task to repeat every "x" hours for a month or a year or however long you choose? I can't find the proper options within jt.exe
JohnQJohnQ
Starting to like KiXtart
Registered: 2003-03-04
Posts: 171
Kent, I have looked at Sealeopard's UDF and it works quite well. I still have not been able to figure out how to make the task recur multiple times in one day. There is a MinutesInterval trigger, but when that value is set, it sets the task to recur in days and not minutes.
scheluding task more than once a day? as far as I know, you will have 2 choises: 1) make own task for each time you wish it to be ran 2) use kixtart's sleep. first instance risen by task-scheluder and rest are from kixtart with the interval you want.
As far as I know, JT cannot schedule tasks that contain triggers for multiple events per day. You will either have to create multiple triggers for the same task by using Glenn's tsControl UDF collection or have the task re-scheudle itself in appropriate intervals.
_________________________
There are two types of vessels, submarines and targets.
JohnQJohnQ
Starting to like KiXtart
Registered: 2003-03-04
Posts: 171
Sorry Jens, I'm using your UDF "SCHEDULETASK" to schedule the task. It works fine when I run it locally, but when I specify a remote machine name I get the error.
I have seen 0x80070035 in error messages before that referred to "machine name not found", but the machine name definately exists. Has anyone else ran into this before?
Actually, I think the correct errro message is "network path was not found".
Check whether you can remotely access the "\\computername\scheduled tasks" folder and make sure you're using an account that has the proper privileges (minimum of local admin on the remote machine).
_________________________
There are two types of vessels, submarines and targets.
JohnQJohnQ
Starting to like KiXtart
Registered: 2003-03-04
Posts: 171
You are correct about "network path not found". As for connecting to the scheduled tasks folder, I am a bit confused. I can type \\remotemachinename from the run line on my PC and I can see all of the shares on the remote machine. I can open the scheduled tasks folder, but am unable to create a new task. (Obviously my problem).
What confuses me is that I have admin rights on the remote PC. I'm thinking it might be something that has been set in the local security policy (Win2k machines) but I'm just not sure what setting it might be - if that's even the case.
Connect to it via e.g. the explorer Window and use the UNC as provided, there is a 'Scheduled Tasks' folder, though it is not listed.
You also need to be careful with authentication as you cannot authenticate against a remote computer with a different username if you are already authenticated.
_________________________
There are two types of vessels, submarines and targets.
JohnQJohnQ
Starting to like KiXtart
Registered: 2003-03-04
Posts: 171
The problem was the remote registry service had been disabled. I can now schedule the task, but if I schedule it to run under the security context of a different user, the task runs but it is invisible to the currently logged on user.
Is there a way to change that or is that the nature of the beast?