Where is drive mapping info stored?

Hello all,

Can someone tell me where drive mapping info is stored?  If I map a Z: drive to \\server\share, where is that info stored locally?

Thanks!!
LVL 1
Michael_GrayAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

masnrockCommented:
If you go to the command line, and type net use, you'll see all of the mappings in use, as well as some of the shares. That way, if you want to remove mappings, you can do net use Z: /delete
0
Sam PanwarSr. Server AdministratorCommented:
Hi,

The map drive information stored in the registry entry file. when the we run any command like masnrock tell you  in his comment then its search the drive information in registry key like if we use the netuse command then netmsg.dll run and its serach the registry entries for map drive if found then its show.

registry entry in c:\windows\system32\regedit

start > run > regedit pres enter you got file and i think you are already check it mant time.
0
Sam PanwarSr. Server AdministratorCommented:
Hi,

The map drive information stored in the registry entry file. when the we run any command like masnrock tell you  in his comment then its search the drive information in registry key like if we use the netuse command then netmsg.dll run and its serach the registry entries for map drive if found then its show.

registry entry in c:\windows\system32\regedit

start > run > regedit pres enter you got file and i think you are already check it mant time.

In registry there is HKEY_LOCAL_MACHINE > hardware option which all the information like

Hardware:  Database that describes the physical hardware in the computer, the way device drivers use that hardware, and mappings and related data that link kernel-mode drivers with various user-mode code. All data in this sub-tree is re-created everytime the system is started.

There are three subkeys under HARDWARE, these are the Description key, the DeviceMap key, and the ResourceMap key. The Description key has describes each hardware resource, the DeviceMap key has data in it specific to individual groups of drivers, and the ResourceMap key tells which driver goes with which resource.

Please check the following knowledge base article for registry in which the mapping drive entries

http://www.governmentsecurity.org/articles/WindowsNTRegistryTutorial.php

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

davidsummersCommented:
Per user Drive mapping is stored under

HKEY_CURRENT_USER\Network\

and then a sub folder for the actual Drive, Say I have a P drive mapped to \\Server\Photos I will have the following Reg Keys:-

[HKEY_CURRENT_USER\Network\p]
"RemotePath"="\\\\server\\photos"
"UserName"=dword:00000000
"ProviderName"="Microsoft Windows Network"
"ProviderType"=dword:00020000
"ConnectionType"=dword:00000001
"DeferFlags"=dword:00000004

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Michael_GrayAuthor Commented:
Thanks!  I'll give this a look this afternoon when I have access to the workstation.
0
davidsummersCommented:
You should be able to remotley access the registry on the workstation.

If you open up Regedit and then go to 'File' menu and then 'Connect Network Registry' and you should be able to enter in the remote host and connect to the registry for that workstation, bear in mind that in this view you will not have the standard RegKey layout of
HKEY_CLASSES_ROOT
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS
HKEY_CURRENT_CONFIG

Instead you will only see
HKEY_LOCAL_MACHINE
HKEY_USERS

When you expand the HKEY_USERS key you wil see a list of SID's for logged on users, you can either use a utility called GetSid to enumerate the user's SID or right click on the SID and select Permissions, this will tell you which SID matches up to your user. If your user is not logged on, then you will not see a SID listed there. What you can do in this instance is to use regedt32 instead of regedit. As this allows you to import a users NTUSER.DAT into the HKEY_USERS hive. I can supply more info on that if you want.
0
boyracerCommented:
having a similar problem.
I verified that the HKEY_CURRENT_USER\Network\ contains drive letters but
what about the unamed connections which do not get a "Local" name attached to it
(thinking of net use here) ?

thanks, Markus
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.