how to create a local share on local computer

Discussion in 'Windows Networking' started by muelle60, May 11, 2006.

  1. muelle60

    muelle60 Guest


    we want to create a share on a computer. the name is in
    the dns I created a CNAME record "intranet" for "services" (A record). so i
    can use like

    But I do have some problems using network shares using my logical name

    I added this reg key to the computer:

    after this I can map to a share from any computer in the network to intranet:
    net use Z: \\intranet\MyShare

    The command completed successfully.

    If I try this on the services computer localy, it does not work:
    net use Z: \\intranet\MyShare
    -> prompts for login and password -> I enter the correct credentials -> but
    the error is:
    System error 1326 has occurred.

    Logon failure: unknown user name or bad password.

    If I try:
    net use Z: \\services\MyShare

    It works!

    What is the problem?


    muelle60, May 11, 2006
    1. Advertisements

  2. In
    I assume the 'services' computer is using the same DNS server as the others.

    From the services' computer, when you ping 'intranet', what does it resolve
    to? Does it resolve to the same IP that or resolves to?

    If you attempt to map to \\ (or,
    whichever you are using), does it work?


    This posting is provided "AS-IS" with no warranties or guarantees and
    confers no rights.

    Having difficulty reading or finding responses to your post?
    Instead of the website you're using, I suggest to use OEx (Outlook Express
    or any other newsreader), and configure a news account, pointing to This is a direct link to the Microsoft Public
    Newsgroups. It is FREE and requires NO ISP's Usenet account. OEx allows you
    to easily find, track threads, cross-post, sort by date, poster's name,
    watched threads or subject.

    It's easy:
    How to Configure OEx for Internet News

    Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
    Microsoft MVP - Directory Services
    Microsoft Certified Trainer

    Infinite Diversities in Infinite Combinations
    Assimilation Imminent. Resistance is Futile
    "Very funny Scotty. Now, beam down my clothes."

    The only thing in life is change. Anything more is a blackhole consuming
    unnecessary energy. - [Me]
    Ace Fekay [MVP], May 11, 2006
    1. Advertisements

  3. muelle60

    muelle60 Guest


    #1 there is only one domain: (I use like
    #2 In the DNS there is a A record for
    and a CNAME record intranet pointing to
    #3 So the ping returns for intranet und services

    I think the problem is the authentification when I use net use.

    net use \\services\MyShare uses the current credentials
    net use \\intranet\MyShare uses ???, I think he can not resolve the
    underlying machine, which he uses to check user name and password


    muelle60, May 11, 2006
  4. Greetings,

    Is the computer that has the share joined to the domain? If so, is the
    permissions of the share setup for Domain Users (or whatever group your
    account belongs to)?

    Also check to ensure the computer you are using to test the connection
    inside the network has the server as the DNS.

    Hope this helps,

    Louis Vitiello Jr.
    MCSE, MCSA, MCP, A+/N+
    ERCP XP Pro / Net Concepts

    Louis Vitiello Jr., May 11, 2006
  5. muelle60

    muelle60 Guest


    again, we have one domain:, all computers are in the domain, the
    services and intranet is the same server!

    I want to map a share on the local computer:

    \\services\MyShare -> works
    \\intranet\MyShare -> does not work

    I use the same login account (local Administrator or a domain account). If I
    use the pyhsical computer name it works local, it does not work if I use the
    logical name.

    And both methods work if I map the share from another computer in the domain.

    Can it be that the computer does not know the login accounts if I use the
    logical computer name for local login?


    muelle60, May 12, 2006
  6. In
    Christian, the issue appears to be an NTLM related authentication issue. If
    you map using the actual computer's NetBIOS name, then it will use the
    current logged on user's access token. A CNAME will not use this and
    therefore you will need to supply credentials. The reg entry is good for
    resolving, but can't be mapped or made to use the access token for
    authentication. One way to map it is to physically go to the machine, and
    map the drive by either using Windows Explorer, Tools, Map Drive, supply the
    UNC and click on "use a different username". You can also batch it by using:

    net use \\intranet\MyShare /user:username password /persistent:yes

    (The persistent parameter will map it each time a user logs on).

    Ace Fekay [MVP], May 12, 2006
  7. muelle60

    muelle60 Guest


    yes I know this and I also used these options (/user), but it does not work.

    I used the local admin account and a domain account, but no success.

    The error message is:

    System error 1326 has occurred.

    Logon failure: unknown user name or bad password.

    Any other ideas?

    muelle60, May 12, 2006
  8. In

    This has always been an issue with CNAMES. Curious, from what operating
    system to what operating system are you trying to map?

    See if this helps: failure: unknown user name or bad password.

    I assume that you read this article and how you were aware of the
    DisableStrictNameChecking reg entry?
    281308 - Connecting to SMB Share on a Windows 2000-Based Server May Not Work
    with an Alias Name [Doesn't work with CNAMES]:

    Ace Fekay [MVP], May 13, 2006
  9. muelle60

    muelle60 Guest


    as I said: From any pc it works, but not on the local machine.

    Yes I know the kb-article and I added already this reg entry, because of
    this it works from remote machines.

    But I dont know, why it dont work localy.

    Any ideas?



    muelle60, May 14, 2006
  10. In
    Then may I *assume* it's XP? Or any other operating system?
    I was merely asking *IF* that was the article.
    Probably because of what I posted earlier. My original thought was that it
    is trying to authenticate with a matching access token with the actual
    NetBIOS name of the machine (kind of like the same function when you use
    nbtstat) and it won't accept a CNAME for an authentication source.
    FYI, for what it's worth, here's info on the nbtstat command:
    Understanding an Nbtstat -n output - Microsoft Windows 2000 Server

    Maybe you can *force* the machine itself into believing it has TWO NetBIOS
    names, one of them being the other one.

    How can I define multiple NetBIOS names for a machine:

    Windows NT Windows Names Aliases - cnames and dupe names:

    If that doesn't work, than I'm fresh out of ideas.

    Ace Fekay [MVP], May 15, 2006
  11. muelle60


    Oct 4, 2006
    Likes Received:
    Did you ever get this working? I have exactly the same problem, but nothing suggested here so far seems to resolve it.
    PSchneider, Oct 4, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.