Solved

copy command asks for username password

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

939 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

5 Experts available now in Live!

Get 1:1 Help Now