Logon failure: the target account name is incorrect

Posted on 2009-04-22
Last Modified: 2012-05-06
I am getting this error when trying to browse to a Windows share on a Windows 2003 server from a Windows XP (both are in the same domain).

I have tried removing the XP device from the domain and readding it with a different name, but the same thing continue to happen.  Also, I CAN get to the share using IP address instead of the NetBIOS name or the server.

This is only happening from the one XP device on the domain.  Please help.
Question by:nprignano
    LVL 8

    Expert Comment

    by:Bradley Haynes
    LVL 15

    Author Comment

    What about the WINS settings?  WINS is not enabled in this domain.
    LVL 8

    Accepted Solution

    Here is a bit I found ( ) that may help:

    This problem had me going for a bit today. As it turns out the answer was simple. Let me set up the scenario for you.
    At work we are in the middle of an Active Directory child domain migration (we are migrating our users and computers into a child domain). As part of this domain migration, we are also moving from separate departmental file servers onto a single file server for the building. I had a logon script in place that would disconnect old mapped printers from a client and reconnect new mapped printers so that we could decommission one of the old file servers (a dying behemoth HP that looks like a mini-fridge).
    The script worked beautifully except for on two legacy Windows 2000 Professional workstations (the rest are Windows XP). The old printers were not removed and the new printers were not mapped on these machines. So, I proceed to try and run the script manually by going to:
    I get the following message:
    Login Failure: the target account name is incorrect
    Huh!?! OK, so this sounds like a DNS or WINS problem. I proceed to check both using nslookup and nbtstat. Everything looks normal. I can query the server and get the appropriate IP address. I even flushed both the DNS and NetBIOS cache. Still the same message. Google time.
    After searching for Login Failure: the target account name is incorrect I came upon a forum entry at experts-exchange that got me thinking in the right direction.
    One of the accepted answers said to remove the problem server from the domain and rejoin it. What that does is essentially reset the computer account for that server. So, I got to thinking (dangerous, I know). The server that I was using for the logon script had recently been migrated to the child domain&
    What if the old computer account still existed in the parent domain? A quick query in Active Directory confirmed this to be true. AHA! I deleted the account from the parent domain and all was well after that. The two Windows 2000 Professional workstations were able to access the Script server share.
    The only thing that I am still fuzzy on is why the Windows 2000 Professional workstations had a problem and the Windows XP Professional workstations didnt. Any ideas? Leave them in the comments.
    This was a very specific case in which the error was experienced. However, the cause may enlighten those administrators in a similar situation. Perhaps the server computer account is screwed up. In this case, maybe resetting it in Active Directory or removing and re-joining the server to the domain will help. I hope you find this helpful. I was glad that it was a relatively simple solution.
    Happy File Serving!
    LVL 15

    Author Comment

    Awesome.  Not at all the answer I wanted, but and answer none-the-less.  Thank you very much for pointing me in this direction.  Looks like I'm putting in a call to Microsoft after all :(

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    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…

    759 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

    8 Experts available now in Live!

    Get 1:1 Help Now