Hi Guys
I am trying to schedule a task for an application to be opened every 5 minutes. I am trying to keep an application open that our employees might accidently close. (That application being the Cisco Unified Personal Communicator with is a Cisco soft phone).
This gets a little complicated because we’re using a domain controller and inserting this into the login script for each employee in the following way:
if exist c:\windows\CUPCScheduled.txt goto skip
schtasks /create /sc minute /mo 5 /tn “Open CUPC” /ru SYSTEM /tr “C:\Program Files\Cisco Systems\Cisco Unified Personal Communicator\CUPCK9.EXE”
echo “Schedule Created ” > c:\windows\CUPCScheduled.txt
:skip
The problem is that the schedule doesn’t run in the Scheduled tasks. I am wondering if this is because of the user: /ru SYSTEM
The message in Scheduled Tasks is Could not start. I cannot see anywhere where I can diagnose why. To the right of this message it says the last result was 0x0.
When I schedule this task manually the only diffence that I can see in the setup is that the ‘Start in:’ field is fully populated (when done manually). When done by scheduled task it is just C:\
Any help resolving this problem would be greatly appreciated. To reiterate, there are no problems with the if exists and echo part of the script. The problem is just with the following part of the script:
schtasks /create /sc minute /mo 5 /tn “Open CUPC” /ru SYSTEM /tr “C:\Program Files\Cisco Systems\Cisco Unified Personal Communicator\CUPCK9.EXE”
Thank you!