Solved

copy file between two servers-username/password

Posted on 2006-11-17
4
2,664 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
[X]
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
  • 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

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
Learn about cloud computing and its benefits for small business owners.
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

705 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