Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...At last there is indeed a website/forum that deals with professional and serious matters. Keep up with the good work!!"

Geography

Where in the world do Tek-Tips members come from?
singlenerd (TechnicalUser)
26 Sep 07 12:40
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 http://www.windowsitpro.com/Articles/ArticleID/20769/20769.html?Ad=1

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!
Helpful Member!  itsp1965 (IS/IT--Management)
26 Sep 07 13:50
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
singlenerd (TechnicalUser)
26 Sep 07 14:34
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

itsp1965 (IS/IT--Management)
26 Sep 07 15:31
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
singlenerd (TechnicalUser)
26 Sep 07 16:46
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

singlenerd (TechnicalUser)
26 Sep 07 17:04
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

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close