1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

permanatly map a network share

Discussion in 'Legacy Windows' started by rdzien, 2003/01/23.

Thread Status:
Not open for further replies.
  1. 2003/01/23
    rdzien

    rdzien Banned Thread Starter

    Joined:
    2002/08/15
    Messages:
    51
    Likes Received:
    0
    Hi,

    Does anyone know how to make a permantly mapped network drive.

    Such that the remote share will remain connected (to g: say)regardless of weather a user is logged onto the system or not.

    The network share must also be mounted at boot time, and be available even if noone has logged on to the system.

    Hoping someone knows,

    Richard
     
  2. 2003/01/23
    unixfan

    unixfan Inactive

    Joined:
    2002/01/26
    Messages:
    282
    Likes Received:
    0
    Could try running a batch file with "net use" mappings under AutoexNT or as a service using FireDaemon or srvany.
     

  3. to hide this advert.

  4. 2003/01/23
    mflynn

    mflynn Inactive

    Joined:
    2002/08/14
    Messages:
    4,141
    Likes Received:
    9
    net use n: \\othercomputer\d /persistent:yes

    where "n:" is name of the drive letter you wish to use as the mapped drive letter on this computer.

    where "othercomputer" is name of the computer you wish to map to.

    where "d" is name of the shared drive of the computer you wish to map to.

    Put this line in logon script or statup.

    Mike
     
  5. 2003/01/23
    mflynn

    mflynn Inactive

    Joined:
    2002/08/14
    Messages:
    4,141
    Likes Received:
    9
    Opps unixfan

    Crossed in the mail!

    rdzien
    use the command I sent with Unixfan's loaders etc!

    mike
     
  6. 2003/01/24
    rdzien

    rdzien Banned Thread Starter

    Joined:
    2002/08/15
    Messages:
    51
    Likes Received:
    0
    :(

    While the program to launch the mounting of the drives works, the drive isnt available if you login to windows. It seems that its only available as long as the script runs, i.e. not very long.

    FYI, the mounted drive needs to be mounted as another service requires it to do its stuff.

    Thanks,

    Richard
     
  7. 2003/01/24
    mflynn

    mflynn Inactive

    Joined:
    2002/08/14
    Messages:
    4,141
    Likes Received:
    9
    Something is wrong here besides drive mapping.

    Is this share being created under Administror rights? If under Admin rights does it stay as it should.

    I don't understand what you mean by:

    qoute

    While the program to launch the mounting of the drives works, the drive isnt available if you login to windows.

    unquote

    Are you saying that as long as you leave it sitting on a logon screen waiting for a username/password it stays mapped????

    Or are you saying that on the computer that has the share, it is avail untill someone logs in on it?

    If so on the computer that is sharing, disconnect the share and reshare under administrator. Then while still logged on as admin go to a computer that wants to use that share an type the net use command at the command line.

    See if it stays connected. Then reboot the 1st computer that has the share and log it back on as Administrator then go back to the other computer and see if you have access without running the net use command.

    If you do you have a permissions problem somewhere on the sharing computer or some system policy.

    If the share does stay with admin then loggoff and have a normal user that uses this computer to log on.

    If you lose your connection on the other computer now. Then you best look at you security/permissions and policies.

    Get back let us know what you find with these tests? And if you can not fix it get us more details.

    Mike
     
  8. 2003/01/24
    rdzien

    rdzien Banned Thread Starter

    Joined:
    2002/08/15
    Messages:
    51
    Likes Received:
    0
    Hi,

    Thanks for the reply mflynn.

    OK...

    I have figured out what was wrong.

    Essentially your suggestions worked (use AutoexNT) and net use g: \\server\foo etc.

    But what was happening was the AutoexNT service was starting before the Workstation service. Which the net command relied on.

    So i added a 20 second pause in at the begining, to wait for the Workstation service to start and it works!

    What i should do it to work out how to make the AutoexNT service dependant on the Workstation service, rather than relying on a long enough pause.

    Thanks for the help guys!!

    Richard
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.