Mapped drives on xp

Posted on 2011-10-14
Last Modified: 2012-05-12
I have a client with Server 2008 r2 and 10 workstarions with Win 7 and XP. 2 of the xp machises will not hold the mapped drives. These are simple maps to a fileserver supporting dental practice applications. One of the machines will hold 1 of 2 maps and the other will not hold either on reboot.
I do not have scripts on the local or server yet. As stated, 8 of the machines work fine, does not seem to be server issue.
There is a domain, maps are lost on reboot but are not auto disconnected while logged on.
Question by:IT2Dr
    LVL 11

    Expert Comment

    try command line:

    net use z: \\share /persitent:yes
    LVL 11

    Expert Comment

    LVL 20

    Expert Comment

    by:Hendrik Wiese
    As it is only 2 machines you could always add the following script into their startup to ensure that the drives does get mapped:
    Option Explicit
    Dim objNetwork, objShell 
    Dim strDriveLetter, strRemotePath, strUserName
    strDriveLetter = "U:" 
    Set objNetwork = WScript.CreateObject("WScript.Network") 
    On Error Resume Next
    strUserName = objNetwork.UserName 
    objNetwork.MapNetworkDrive strDriveLetter, strRemotePath & strUserName
    objNetwork.MapNetworkDrive "S:" , "\\scends01\IEMASDfs\Centurion Public Data"
    Sub ShowExplorer()
    Set objShell = CreateObject("WScript.Shell") ("Explorer" & " " & strDriveLetter & "\" )
    End Sub

    Open in new window

    Hope this helps!!!
    LVL 20

    Expert Comment

    by:Hendrik Wiese
    You can save my example script as FILENAME.vbs


    Author Comment

    will net use need logon script?
    LVL 11

    Accepted Solution

    no, open command promt and enter command

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
    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…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    794 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

    18 Experts available now in Live!

    Get 1:1 Help Now