Solved

copy command asks for username password

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

717 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