none
Logon Script - prompting for password for a mapped drive.

    Question

  • We have the following issue that has us scratching our heads...
    Windows 2003 AD, single forest, 4 domain controllers. 100+ Win XP Pro SP3.  DCs have all SPs and hotfixes.

    During the login script we have two PCs that during the process of mapping all of the drives, both PCs stop at the same mapped drive and ask for a username and password.  This script is used in the entire fleet and no other workstations have the issue.  The script was originally written in 2005, and has not changed.  Permissions to the shared folder in question have not changed, nor have any GPO's applied either to the workstations or servers changed.

    The command is very simple: 

    net use /persistent:yes
    net use F: "\\192.168.1.25\sys\client data"
    echo mapping F: \\192.168.1.25\sys\client data


    if we create a copy of the batch file, and add the user's creditials (username and password) to the script, both PC's will complete the script fine and not prompt for any user input.  The main issue here is that passwords change every 30 days.

    We have verified TCP/IP & DNS settings, we have set the NICs to 100full and the ports on the switch to 100Full for those two units.  We have updated all drivers, we have removed the units from the network and added them back.

    Could this be an issue with a SID?  Any other ideas ?

    Monday, August 17, 2009 6:38 PM

Answers

  • So, if you delete the prior mapping first, does it make a difference?

    That is...

    net use F: /del
    net use /persistent:yes
    net use F: "\\192.168.1.25\sys\client data"
    echo mapping F: \\192.168.1.25\sys\client data
    Monday, August 17, 2009 6:58 PM
  • Does the problem occur only with certain user profiles, or with all user profiles? (Drive mappings are stored in HKCU)

    Have the affected users checked the "remember my password" check box for shared resources? (Try running 'control keymgr.dll' for the affected users)

    Bill
    Tuesday, August 18, 2009 4:37 PM
    Moderator
  • Did you try vbscript to map drives instead of bat files? Does users login in same domain where data is? Does users id have access to shares they are mapping? Check effective permission of those users on those 2 shares and then try.
    Amol
    Thursday, August 20, 2009 1:56 PM

All replies

  • So, if you delete the prior mapping first, does it make a difference?

    That is...

    net use F: /del
    net use /persistent:yes
    net use F: "\\192.168.1.25\sys\client data"
    echo mapping F: \\192.168.1.25\sys\client data
    Monday, August 17, 2009 6:58 PM
  • Does the problem occur only with certain user profiles, or with all user profiles? (Drive mappings are stored in HKCU)

    Have the affected users checked the "remember my password" check box for shared resources? (Try running 'control keymgr.dll' for the affected users)

    Bill
    Tuesday, August 18, 2009 4:37 PM
    Moderator
  • Did you try vbscript to map drives instead of bat files? Does users login in same domain where data is? Does users id have access to shares they are mapping? Check effective permission of those users on those 2 shares and then try.
    Amol
    Thursday, August 20, 2009 1:56 PM