Solved

copy file between two servers-username/password

Posted on 2006-11-17
4
2,659 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
  • 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

I have never ceased to be amazed how many problems you can encounter on a fresh install of a Windows operating system.  This is certainly case in point& Unable to complete ANY MSI installation.  This means Windows Updates are failing and I can't …
I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

746 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

13 Experts available now in Live!

Get 1:1 Help Now