?
Solved

copy command asks for username password

Posted on 2006-11-17
5
Medium Priority
?
1,710 Views
Last Modified: 2008-02-01
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
  • 3
  • 2
5 Comments
 
LVL 30

Expert Comment

by:SteveGTR
ID: 17968155
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
 

Author Comment

by:at999
ID: 17968198
ya i am executing a batch file as a scheduled task
that batch file has copy command
0
 

Author Comment

by:at999
ID: 17968204
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
 
LVL 30

Accepted Solution

by:
SteveGTR earned 1000 total points
ID: 17968238
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
 

Author Comment

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

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

One of my most closely kept secrets is revealed in this discussion How to output text on the same line This question was recently posted in EE by Simon336697 (http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_2459…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

762 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