NET USE with password is not working in Windows XP Professional

Posted on 2005-04-13
Last Modified: 2012-05-05
Hi experts,

I'm writing a batch to connect to a shared resource from a XP, this resource is shared to an specific user so I have to use NET USE like:

C:\>net use q: \\fileserver\sharedreoruces password /USER:userwithaccess

The problem that it's returning this error:

"System error 1219 has occurred."

"Multiple connections to a server or shared resource by the same user, using more
 than one user name, are not allowed. Disconnect all previous connections to the
 server or shared resource and try again.."

It's strange, and seems to be a windows security configuration.

Any suggestion?

Thanks in advance

Carlos V.
    LVL 12

    Accepted Solution


    The problem is that you already have an SMB session to the server in question.  As the message says, Windows cannot manage two different identities to connect to the same server (or domain).    To be able to connect you must either:
     - disconnect (>NET USE X: /DEL) any other network drives mapped to the same server, *or*
     - give your own userid rights to access this share

    The thing I am not completely sure about is what other resources (other than mapped drives) could be keeping connections open to the server.  If the server is also your domain controller, you may not be able to use another userid even after un-mapping all network drives.

    Author Comment

    Hi Carlo,

    Your're right I just removed the other shared resource form the same server and it' working ok now. At first when I was reading some forums I thought it was necessary to remove all the mapped resources, so I discarded this option because the user needs to map resources from other servers...

    Thanks a lot,

    Carlos V.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Suggested Solutions

    Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
    cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
    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!
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    754 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

    20 Experts available now in Live!

    Get 1:1 Help Now