mapped drive keeps disconnecting and asking for password

Posted on 2005-05-04
Last Modified: 2012-05-05
How can I make a mapped drive not disconnect and store the password?
Question by:dheinmiller
    LVL 16

    Expert Comment

    net use driveletter:  \\servername\sharename /persistent:yes

    Also see

    You can modify the registry as well, to keep a connection active.

    However, if the drive keeps disconnecting you may be having a network/user issue.

    Author Comment

    Thanks Glen,
    It wants the password for the share. Where would the user name and password be inserted?
    LVL 16

    Accepted Solution

    net use driveletter:  \\servername\sharename /persistent:yes password  /USER:domainname\username

    The USER may not be required.
    Where you see password you need to enter the password. Since this is a text file, you may want to hide it if it is a batch file.

    attrib filename.bat +h

    Author Comment

    It Works, Thanks! also I used your advice on hiding it.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
    Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
    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…

    761 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

    11 Experts available now in Live!

    Get 1:1 Help Now