Solved

copy command asks for username password

Posted on 2006-11-17
5
1,620 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
  • 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 250 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now