Computing.Net > Forums > Windows Server 2003 > scheduled task not running

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

scheduled task not running

Reply to Message Icon

Name: Pearcel
Date: March 12, 2009 at 02:51:09 Pacific
OS: Windows Server 2003
Subcategory: General
Comment:

Hi,

I was wondering if someone could help, as I am new to this kind of stuff. (Hopefully I have posted in the right category!)

Particulars:
Windows Server 2003, classic asp

I have created a scheduled task that runs a .vbs file.

That .vbs file opens internet explorer on the server, and gos to the root of my domain an runs a script tasktest.asp.

tasktest.asp contains the simple code for testing:

<%
Dim strXML
strXML = "tasktest.asp ran and printed this message"

thedate = Now()

strXML = strXML & " - the date this was printed was " & thedate


Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set ctf = fs.CreateTextFile(Server.MapPath("tasktest.txt"), 2)
ctf.WriteLine(strXML)
ctf.Close
Set fs=nothing

%>


When I manually run the scheduled task, the file tasktext.txt is created in the root directory fine. when I set the scheduled task to run within the next few minutes, and then log out and wait for it to run automatically and log back in, I get the success code that the scheduled task has run '0X0' and the time is updated. However the file tasktest.txt is not updated.

I have tried right clicking on the scheduled task, going to properties and setting the password for the ST that I use to log into the server but this does not solve this issue.

Does anyone have any ideas of what I can try? I don't normally deal with the server stuff so I am not up on the lingo etc.., but any help is greatly appreciated!


Thanks for your assistance!



Sponsored Link
Ads by Google

Response Number 1
Name: Pearcel
Date: March 12, 2009 at 03:02:03 Pacific
Reply:

Sorry I forgot to say, for the scheduled task, under properties/security, the group or user names are Administrators, SYSTEM, MYNAME (this is the user I log in as).

All have full control permissions as I can tell.


0
Reply to Message Icon

Related Posts

See More


Changing Motherboard in 2... Veritas Backup Exec new t...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows Server 2003 Forum Home


Sponsored links

Ads by Google


Results for: scheduled task not running

create scheduled task remote server www.computing.net/answers/windows-2003/create-scheduled-task-remote-server/6346.html

Scheduled Tasks www.computing.net/answers/windows-2003/scheduled-tasks-/9054.html

Scheduled tasks in seconds www.computing.net/answers/windows-2003/scheduled-tasks-in-seconds/9154.html