Logon Failure: The target account name is incorrect.


When I try to access my server through network neighborhood or from run: \\server (1 of 2 domain controllers), I get this error: "Logon Failure: The target account name is incorrect."
When I access the server with the IP address it works fine.

Any help will be appreciated.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


the error you described is VERY common when NetBios is screwed up.

open a dos prompt, and type
nbtstat -n

do this on both machines (the server you're trying to access, and the machine you're doing this from)

if you don't see at least the machine name, and the netbios domain name,
you have netbios issues.

check to make sure your machine name does not have any space in it.
make sure there aren't two machines with the same name.
you could even consider changing the computer names to something else, and see what happens.

what happens when you
ping -a servername   ?

(servername) above is the computer name with no periods, and no domain name.
just the computername of the server.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jananziAuthor Commented:
Hi Haresh,

Thanks for responding! The problem trying to access the Domain Controller via My network places is from many PC's not only one. I have changed the PC name of 1 of the client pc's, also removing it from the domain and put it back onto the domain but it did not resolve the problem.
I have also checked nbtstat -n and did not see any problem there. I can't change the domain controllers name because of obvious reasons. The problem is not with the client PC's I think but with the specific server. What is interesting though is that the server having the problem being accessed from the network also has exchange on it. The outlook clients connect fine, no problem, the interesting part is that outlook connects with the servername.
When I ping the servername it resolves the name to the correct IP.

Is it not DNS that is screwed..........I have checked it but it seems to be OK.


Our network is experiencing the same problem:
Exchange 2000 appears to be accessible too but not the shares (\\server\share).
Pinging the server - no probs.
Some users found restarting their PC did the job for them but this may be a co-incedence.
So far I've read it could be an Active Directory replicating issue, possibly something to do with passwords but I don't recall anything changing here.
What's going on?
I'm working on the issue and seeking support. If I get the solution I'll post it here...
If anyone else can help in the meantime?!

PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

I have had the same problem and have been working with a couple of sharp guys under the Microsoft Networking section.  It seems to be related to DNS as AD is dependent upon it.  They gave me some good advice.  You may want to check there.
jsarinanaI.T. ManagerCommented:
I'm having the same problem, Exchange 2000 clients work fine, ping works fine but some users are having problems with a shared folder on the server. Bergm57, you wrote about DNS and AD and you have "You may want to check there" any feed back where to check would be appricaited
I am able to map a drive on some machines to a specific ip address and share, but no longer able to map or browse to a share via network neighborhood or the server name.  I have a mixed NT 2003 enviroment running AD.  If anyone has any suggestions it would be very helpful for many users are unable to access their folders due to the "Target account name is incorrect" error.  

Bergm57:  when you say to check "There", where in the MS networking section do I check for addtional help in this matter.
jsarinanaI.T. ManagerCommented:
In my case I had two things going on, a broken security channel that I broke when fixing an Exchange problem, I had to run the SMTPReinstall.exe command and reinstall Exchnage 2000 and then install service packs, after this my security channel was broken. When this server which is a Domain controller tried to replicate to my other Domain controller I ended up with a replication problems and that is when I started getting access denied problems. I did the following and now I'm ok: http://support.microsoft.com/?id=329721 

Hope this helps
Check that File and Printer Sharing are ticked on your Server network adapter properties

Check that computer account (here 'server') in AD isn't created at two places (in two domains).
Hi gang, I had the same problem when trying to access one domain controller from another.
I read all this great stuff......and then I just said, what the heck....Let's try a reboot!

Now it works like a charm.....

See, you to can become a network consultant like me!

See ya,


I have issues similar to this, but I just tried the following with strange results ...

Workstation systems cannot access resources on another workstation, so, on those workstations I tried ping -a ComputerName

The target system's IP is not being returned to the host systems, rather an IP of another system on the network.

How is that happening?
if you are able to access the target system  using ip address; and not able to access computer name ; problem is in your PC; Just Flush the dns cache and re register to DNS.
use the following command;

ipconfig /flushdns
ipconfig /registerdns

and still problem exist;
add the target system anme in host files.

it will work
I have the same issue than johan, and I opened a new post.
it might be the netbios that you mention for me
It's driving me crazy, maybe you can help me there:

this is what I get from the server when doing nbtstat -n:

Local Area Connection 2:
Node IpAddress: [] Scope Id: []

                NetBIOS Local Name Table

       Name               Type         Status
    OBT            <00>  UNIQUE      Registered
    OAKBROOK       <00>  GROUP       Registered
    OAKBROOK       <1C>  GROUP       Registered
    OBT            <20>  UNIQUE      Registered
    OAKBROOK       <1B>  UNIQUE      Registered
    OAKBROOK       <1E>  GROUP       Registered
    OAKBROOK       <1D>  UNIQUE      Registered
    ..__MSBROWSE__.<01>  GROUP       Registered

and I get this from the user:
Local Area Connection:
Node IpAddress: [] Scope Id: []

                NetBIOS Local Name Table

       Name               Type         Status
    SPAREOAK       <00>  UNIQUE      Registered
    OAKBROOK       <00>  GROUP       Registered
    SPAREOAK       <20>  UNIQUE      Registered
    OAKBROOK       <1E>  GROUP       Registered


Hello group, I am also facing the same problem "Logon Failure" i tried all the suggestions. but same problem, for the time i mapped the users with the IP address. But need to find out the real solution for this.
I found the same issues with an xp pro domain member client pc, when logging in from startup, it would work, but if i logged off then back in i would get the original error mapping say" net use g: \\servername\share . Logon Failure: The target account name is incorrect, is what i get when doing the logoff/logon. To get around this, i changed the login script to: net use g: \\servername.domain.lan\share and now it works. Not sure why, as it tried everything above and lots of other stuff. My login script is specified in the ad user account for login script parameter, where all that is specified is logon.cmd, which resides in \\dc\netlogon
try using FQDN instead of just a "servername"
After struggling with this same issue for several hours I came across this MS KB article:


I had the additional symptom that the DHCP server installed on that DC (which was working in the past), was now showing up as unauthorized. Any attempts to authorize it would fail.

Apparently the communication between domain controllers in 2 sites were having a problem.
The article describes using:

netdom resetpwd /s:{server} /ud:{domain\User}  /pd:*

This resets the intersite Kerberos password that apparently got out of sync on one of my DCs.

Be sure to stop the KDS service before using the above command. (described in the article)
You will need to reboot after running.

Seemed to solve all my issues.
if it only works with a FQDN, check your DNS settings under Advanced TCP/IP settings.  Make sure the correct DNS suffix is specified in Append these DNS suffixes in order.
Make sure to not have any of your server network cards set to operate under power management settings. Over the weekend when things would quiet down the cards would go into sleep mode and Monday morning the first 20 mins would be strange connection issues until everything replicated properly....  This seemed to have fixed my problem..
Just a slight correction my real problem was I had my proxy set to hand out 5 ips in a small range. I did this snapshot a server and forgot about that setting I had changed a while back.. problem resolved for me...
This message is very generic which can lead to so many issues in this case this was my problem..
For me it was a site issue. 3 sites and one had two subnets which was confusing the system.. Deleted the extra subnet and everything worked fine.
I saw this same error while trying to troubleshoot SCCM non-clients and my fix was checking DNS.  The hostnames that were appearing in my Collections (discovered via AD/Heartbeat, not network) were showing either old hostnames or valid hostnames with incorrect PTR records.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Networking

From novice to tech pro — start learning today.