Solved

Need help copy file ...

Posted on 2004-04-02
7
923 Views
Last Modified: 2012-06-21
Hi everyone,

Can someone please take a look at the command below and tell me why it doesn't work?

COPY \\100.2.3.87\Quack\Transfer\DMA\DataFiles\DMA_Intake_04040209.pgp \\192.168.0.40\ftproot\DMA /Y

I keep getting this error:

Logon Failure: The target account name is inccorect

0
Comment
Question by:Taz2
[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
7 Comments
 
LVL 30

Accepted Solution

by:
SteveGTR earned 50 total points
ID: 10744650
Here's some information on the error as ERROR_WRONG_TARGET_NAME maps to SEC_E_WRONG_PRINCIPAL:                  

Connecting with Incorrect Computer Name Results in 3034 WarningPSS ID Number: 263208

Article Last Modified on 5/14/2003
--------------------------------------------------------------------------------
The information in this article applies to:


Microsoft Windows 2000 Advanced Server
Microsoft Windows 2000 Professional
Microsoft Windows 2000 Server

--------------------------------------------------------------------------------

This article was previously published under Q263208
SYMPTOMS
When you try to connect to a computer, the connection may not work. In the client System event log, you may also receive one or more event ID 3034 event messages that have a source of MRxSmb (MRxSmb is the SMB mini-redirector that has secure SMB capabilities in Windows 2000). In the "Data" section of the event message, the last DWORD value in the list, ordered by WORDS, is 80090322.

CAUSE
The event 3034 error message with the specific status code of 80090322 (SEC_E_WRONG_PRINCIPAL) indicates that the client tried to connect to the server with a computer name that is different from the actual computer name of the server.

You may also receive event 3034 event messages if two computers accidentally register the same IP address in the Domain Name System (DNS). In that case, the A record for the computer that hasthe incorrect IP address should be deleted in DNS.

RESOLUTION
This problem is typically the result of a host name resolution issue. If it is, on the client computer, use the ping command to verify that the IP address that the client is using for the server is correct. For information about the ping command, see Windows Help. If the IP address is not correct, you must determine where the incorrect address comes from, and then contact your network administrator. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
200525 Using NSlookup.exe

MORE INFORMATION
If the server is linked to the network by using remote access functionality and Point-to-Point Tunneling Protocol (PPTP), and you are using dynamic Domain Name System (DDNS), this issue may occur until the server's DNS entry has been replicated across the available DNS servers.
0
 
LVL 8

Expert Comment

by:Here2Help
ID: 10750442
Hey.

Try the 'Net use ' Command to map to the file ur'r requiring then copy to the destination folder!
0
 
LVL 2

Expert Comment

by:rogerperkins
ID: 10750916
You may also need to 'Net use' to map the destination, if it is not local.
0
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

 
LVL 6

Expert Comment

by:chigs20
ID: 10753592
Try this:

:: This maps the machine you want to use
net use \\100.2.3.87  or \\server_name  (depends if you are local or not)

:: Copies necessary files
copy C:\Quack\Transfer\DMA\DataFiles\DMA_Intake_04040209.pgp  \\192.168.0.40\ftproot\DMA /Y
0
 
LVL 14

Expert Comment

by:spiderfix
ID: 10755077
The "/Y" parameter goes after "copy" not at the end of the string.
0
 
LVL 8

Expert Comment

by:K_2K
ID: 10765225
Don't forget to add /Z on copy when network is involved.  It will not address your question nor change that the above are good answers, but after started the /Z mode will drasticly reduce or eliminate errors due to normal collisions found in networks.

(\o/)
0
 

Author Comment

by:Taz2
ID: 10765958
Thanks to SteveGTR, your answer pointed me in the right direction.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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 high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

695 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