Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NT4 scheduled task is not running. 1

Status
Not open for further replies.

singlenerd

Technical User
Sep 26, 2007
25
US
Hello all,

I realize that NT4 has been on M$ DL for a while, but we are trying to phase out our two servers. Part of which requires a backup vb script to be run at night. Which currently doesn't run, unless double clicked while logged in as admin. I checked this article
From there I can effectively rule out...
Reason #1 because, I set the task to run as Administrator and use the password for the account
Reason #2 because, I do not use %temp% variables anywhere in the vb script. (As far as I can tell.)
Reason #3 article is cut off because I am not a subscriber.

Does anyone have any thoughts on this or can point me in a direction, it would be much appreciated.

Thanks!
 
Most sched tasks fail because of either a credential issue or it is accessing a remote share/folder to which you can no longer authenticate to or access
 
I am probably having an issue of what you are speaking to...
I am running a VB script that copies some folders from the NT4 server it is on, to our new Win 2k3 Std R2 SP2 server. I get a path not found error. But as far as I can tell it is pointed to the right directory.

I do have the job setup to run as the admin account on the NT4 server, and the script is setup to create the file if it doesn't exist. I also have a domain trust setup between the servers.

How do I make sure it isn't a credential issue for the remote share/folder?

Cheers
 
Try modifying your script so that you can map a drive using a different credential, execute your job, and then delete the drive mapping.
Ex)
net use x: \\servername\share /user:domain\serviceacct
<run your other script commands>
net us x: /del

That should do the trick
 
itsp1965 you are spot on! I removed the vb script mapping code, manually mapped the drive through the cmd prompt and everything copied correctly. I am working on getting the vb script part working correctly as you read this.

Thank you!!

Cheers
 
Ok, so I duplicated all of the credentials I needed and the VB script will not map the drive. All I can think of doing is to create a .bat file that maps the drive then calls the script. After the script finishes its file transfer, either the script or the .bat will remove the drive. So far that is the direction I am headed, please let me know if there is a better path. I am new to both vb script and networking and I appreciate the help!

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top