• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2668
  • Last Modified:

copy file between two servers-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.  
0
at999
Asked:
at999
  • 2
  • 2
1 Solution
 
rhandelsCommented:
Hi,

If oyu want to dot his, you could either create a copy job (scheduled) that holds the admin account or log in using an admin account and copy manually. Make sure the account u use is an admin account on both machines (like a domain admin account). Also, make sure the account is not locked out...
0
 
at999Author Commented:
so in the scheduled tasks I should specify this command -

RUN : copy \\machine1\\folder1\\file1     mylocalfile

RUN AS ADMIN
PASSWORD'.....

?
0
 
rhandelsCommented:
No, create a bat file like copy.bat (can be a renamed text file) put in the command there, then go to Start --> Settings --> Control Panel and then scheduled taksk. Create a new tasks and at the end specify an admin account as the user who executes the copy job...
0
 
at999Author Commented:
actually i was executing that batch file from dos prompt, not from scheduled tasks, after specifying password in schedule task its working fine.
0

Featured Post

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now