what causes mapped drives to be disconnected

Discussion in 'Windows Server Systems' started by usghvn2002, Mar 13, 2006.

  1. usghvn2002

    usghvn2002 OSNN Junior Addict

    Messages:
    21
    Hi: I don't know if it is the right place to ask.

    Some of my users having a login problem to the terminal server. I am using windows 2000 advanced server. When they log in, sometimes they don't have access to the network drives. However, if they log off and log back in they have access to them. It does not happen to every user. it just happens one a week for many users. I have a login script in the domain. I don't really know what cause this problem. the log in script or other services. Thanks for all your comment.

     
  2. Dublex

    Dublex Quazatron R6 droid

    Messages:
    624
    Location:
    Hertfordshire, UK
    Do the effected users have the "reconnect at login" setting ticked in the Tools -> Map network Drive menu in windows explorer?

    If it isn't this then I am sure one of the more network skilled users here will be able to help you - as the problem could be caused by something in the log in script which I am less skilled in.
     
  3. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    "Reconnect at login" does not apply when a login script is used. That only comes into play if the drive is mapped manually.

    First off, what type of script is it? Is it a .bat file or a .vbs?

    Can you post the script?
     
  4. usghvn2002

    usghvn2002 OSNN Junior Addict

    Messages:
    21
    Yes. the effected users have the "reconnect at login" checked
     
  5. usghvn2002

    usghvn2002 OSNN Junior Addict

    Messages:
    21
    it is a vbs script. the script is very simple. I only mapped the drives and connected the printers. I post the mapped drive section here.

    DIM wshnetwork
    DIM strUser

    '* Error control
    '* Supress logon errors
    on error resume next
    set wshnetwork = wscript.createobject("wscript.network")

    '* Basic mapped drives:
    '* Mail
    '* Pubic
    '* Medicat
    '* Techsup

    wshnetwork.removenetworkdrive "g:"
    wshnetwork.removenetworkdrive "h:"
    wshnetwork.removenetworkdrive "m:"
    wshnetwork.removenetworkdrive "t:"

    wshnetwork.mapnetworkdrive "g:","\\NTS1\Mail"
    wshnetwork.mapnetworkdrive "h:","\\terminalserver\public"
    wshnetwork.mapnetworkdrive "m:","\\NTS1\Medicat"
    wshnetwork.mapnetworkdrive "t:","\\terminalserver\techsupport"
     
  6. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    Do any of the drives connect, or when the problem occurs, do none of them connect?
     
  7. usghvn2002

    usghvn2002 OSNN Junior Addict

    Messages:
    21
    none of them connect. Don't see any thing (any Icon for network drives) except the local drives.
     
  8. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    Can you look in the event viewer for messages that appear around the time of login? Might be a communication problem between the clients and the server(s). I would suspect your script, ad the code is a bit iffy, but if it works sometimes and not others, I would suspect communication problems.
     
  9. usghvn2002

    usghvn2002 OSNN Junior Addict

    Messages:
    21
    I looked in the event viewer. I saw some warning: Source: MRXsmb
    EventID: 3019
    These warning is not very close to the time of login. If you suspect my script, which line I should modify.
     
  10. usghvn2002

    usghvn2002 OSNN Junior Addict

    Messages:
    21
    I just realize that this problem is due to the user does not log off the terminal the day before. If they do log off the day before, they don't enounter this problem when they first log in the next day. So do you have any comment about this?
     
  11. Mastershakes

    Mastershakes Moderator

    Messages:
    1,721
    Location:
    Montreal
    Is there some maintenance or backups every night that would unmap the users from the servers?
     
  12. usghvn2002

    usghvn2002 OSNN Junior Addict

    Messages:
    21
    Re: I do have backup every night using NT backup on that server.

    I do have backup every night using NT backup on that server. However, I don't know how it will unmap the drives when users first login. Thanks
     
  13. Terrahertz

    Terrahertz Extinction Agenda Political User Folding Team

    Messages:
    972
    Location:
    New York
    Check your user account profile logon hours. Do you have set times for users on the network? If so just disable time sessions.