copy command asks for username password

I have two servers -  both running on windows 2003 server OS
They are in the same domain.

I want to run MS DoS -COPY command to copy files between the two servers,
I get errror message that -
Logon failure: unknown user name or bad password.

How can I copy files between those two servers?
I dont want to  specify username/password in the batch file that has thta Copy command

Thank you.  
at999Asked:
Who is Participating?
 
SteveGTRConnect With a Mentor Commented:
Change the "Run as" to a domain user account on the Task page for the task's properties. Doing this will require you to enter the password of the domain user's account. You'll enter the user account like so: domain\username
0
 
SteveGTRCommented:
Are you executing the copy command in a scheduled batch under the default system account. If so the other server will not be able to authenticate the user. You should run the scheduled task under the account of domain user.
0
 
at999Author Commented:
ya i am executing a batch file as a scheduled task
that batch file has copy command
0
 
at999Author Commented:
ya i am executing a batch file as a scheduled task on destinatino server
that batch file has copy command to copy from source server
0
 
at999Author Commented:
before scheduling that batch file thanks i was trying to run that batch file from DOS prompt without specifying the password now in scheduled task, its working :)

thanks a lot
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.