Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

copy file between two servers-username/password

Posted on 2006-11-17
4
2,662 Views
Last Modified: 2012-05-05
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
Comment
Question by:at999
  • 2
  • 2
4 Comments
 
LVL 23

Expert Comment

by:rhandels
ID: 17968175
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
 

Author Comment

by:at999
ID: 17968194
so in the scheduled tasks I should specify this command -

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

RUN AS ADMIN
PASSWORD'.....

?
0
 
LVL 23

Accepted Solution

by:
rhandels earned 250 total points
ID: 17968289
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
 

Author Comment

by:at999
ID: 17968443
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question