+ Post New Thread
Results 1 to 7 of 7
Windows Thread, Where are drive letter mappings remembered? in Technical; I dont know if this is just us or its just a Windows quirk, but with a logon script to ...
  1. #1

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    48

    Where are drive letter mappings remembered?

    I dont know if this is just us or its just a Windows quirk, but with a logon script to map drives, if I dont put NET USE \DELETE before every NET USE drive mapping, we sporadically get the old drives mapped, even though they arnt in the script anymore

    For example I recently changed the admin logon script. It had NET USE /DELETE before each letter but as the new shares had been active for over a year, I thought it would just map the new ones. No such luck...just logged on and instead of the current share being mapped to M:\, I'm getting one that points to a non existant share and server that is long gone

    Where on earth does it get this from? I cant imagine profile? The account in question has a mandatory profile anyway, so nothing could have been written to it.

  2. #2


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,657
    Thank Post
    350
    Thanked 789 Times in 710 Posts
    Rep Power
    344
    Maybe it was previously mapped with /P:YES.

  3. #3
    GlennT's Avatar
    Join Date
    Sep 2006
    Location
    Zummmerzet!
    Posts
    249
    Thank Post
    19
    Thanked 17 Times in 16 Posts
    Rep Power
    19
    Quote Originally Posted by kmount View Post
    Maybe it was previously mapped with /P:YES.
    This sounds probable.
    Had this a while back and had to use "net use * /DELETE /Y" from what I recall....

  4. #4

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    10,684
    Thank Post
    824
    Thanked 2,570 Times in 2,187 Posts
    Blog Entries
    9
    Rep Power
    731
    Here's what I found out about it:

    {site} - Okay - here's what I have found...
    If you map a drive "with" persistent connections, it appears in the registry under the key:
    HKCU\Network\<DriveLetter> (obviously, where drive letter is the mapped drive).
    So it looks like it is stored in the user hive of the registry, maybe this is because of caching on the workstations in question. Are you using super mandatory profiles? (see wiki)

  5. #5

    Join Date
    Mar 2007
    Posts
    307
    Thank Post
    3
    Thanked 9 Times in 8 Posts
    Rep Power
    16
    Could it be that some clients have old profiles stored locally? I tend to run delprof to make sure no stored profiles are causing any problems with any scripts I run.

  6. #6
    bio
    bio is offline
    bio's Avatar
    Join Date
    Apr 2008
    Location
    netherlands
    Posts
    520
    Thank Post
    16
    Thanked 130 Times in 102 Posts
    Rep Power
    37
    I think Synack is on the right track here. I have seen it in our network as well.
    To start off you can clean the registry of those mappings (just start regedt32 and import the users .DAt or .MAN file into a hive, change it, and save again) . However it could be a profile sync problem as well. (the pc grabs an "old" local profile if it can't grab the roaming one).

    bio...

  7. #7

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    48
    Hmm well it sounds like a persistant connection but I cant say Ive ever used that in a script in the 3 years Ive been here and all PC's will have been reimaged and profiles will have been cleared in that time so any old stuff should be long gone.

    No big deal, Ill just use NET USE * /DELETE /Y - didnt know you could do that, was getting fed up of deleting each letter seperately - cheers Glenn

SHARE:
+ Post New Thread

Similar Threads

  1. Daemon Tools drive letter
    By ZeroHour in forum How do you do....it?
    Replies: 9
    Last Post: 21st May 2009, 03:46 PM
  2. USB Drive letter
    By TechSupp in forum How do you do....it?
    Replies: 9
    Last Post: 5th March 2008, 09:27 AM
  3. Replies: 2
    Last Post: 21st August 2007, 01:16 PM
  4. Hide Drive Letter
    By mattx in forum Windows
    Replies: 3
    Last Post: 21st May 2007, 01:10 PM
  5. Kicking the drive letter habit
    By ITWombat in forum Windows
    Replies: 5
    Last Post: 29th May 2006, 01:02 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •