SideBar    Using Mapped Files for Backups
DOWNLOAD THE CODE:
Download the Code 38952.zip

Mapped drives let users easily and quickly navigate a network. Using mapped drives, you can simply point and click to access network resources, whether you're working in Windows Explorer, My Computer, or software application dialog boxes such as Open or Save.

Drive mapping is nothing more than assigning a drive letter to a remote share. Because the drive letter is local, the remote resource appears in My Computer and Windows Explorer as if it were a local resource, letting you access the remote share much more quickly than you can by typing the shared folder's Universal Naming Convention (UNC) name or browsing the network for the folder.

Administrators who teach users how to map drives or who use Windows functions to automatically map drives for users spend less time in Help desk mode. And because some applications exhibit quirky behavior or otherwise don't work well with UNC names, mapped drives are sometimes necessary. However, some administrators don't understand mapping. Others do but don't know the many tricks and shortcuts that they can use to map drives. If you're in one of these two categories, read on to become familiar with the wonderful world of mapped drives.

Using the Windows GUI
The quickest and easiest way to access a share that you want to manually map is through My Network Places. (Keep in mind that you can access My Network Places through Windows Explorer and My Computer as well as through the My Network Places icon on the desktop.) In the treeview pane, expand the view of the computer that contains the share you want to map. Right-click the share and choose Map Network Drive from the shortcut menu to open the dialog box that Figure 1 shows.

By default, Windows 2000 checks the local drive letters in use and offers the next available drive letter in the alphabet for the mapped share. In contrast, Windows Server 2003 and Windows XP start with Z when looking for available drive letters, then work backward through the alphabet. If you don't want to use the offered drive letter, simply specify any other unused letter.

The Reconnect at logon option determines whether the computer will automatically connect to the drive the next time the user logs on to the machine (mapped drives are user settings, not computer settings). The first time you map a drive, the check box is selected by default. Thereafter, Windows remembers the previous state of the option and defaults to that configuration. Unless the user doesn't plan to access the share in the future, you'll typically want to select Reconnect at logon.

Reconnecting to mapped drives during start-up adds several seconds to the startup process and longer if the mapped share isn't available during start-up. A computer's ability to find and reconnect to a drive depends on whether the remote computer has completed its boot sequence. If the remote computer is booting, Windows displays the mapped drive in My Computer (and Windows Explorer) with a red X superimposed on the icon. After the share becomes available, double-clicking the icon quickly connects you to the mapped share, and the red X disappears.

Similar to the Windows RunAs feature, the Connect using a different user name option lets users who don't have permissions to work in a particular share connect to the share through a user account that has the necessary permissions. Users must supply the password of the account. Specify a username and password if you like, then click Finish on the Map Network Drive dialog box. Windows will write the information to the local computer's registry, add the new drive letter to My Computer, and open a window to display the share's contents.

If the shared folder is a parent folder and you expand it to view its child folders, you can't right-click a child folder and map a drive to it. The Map Network Drive command doesn't appear on the shortcut menu for a folder that isn't explicitly shared. You can, however, map the drive from the command line, as I explain later. To remove a mapped drive from a computer, right-click its icon in My Computer or Windows Explorer and choose Disconnect.

   Prev. page   [1] 2 3 4     next page



You must log on before posting a comment.

If you don't have a username & password, please register now.

Reader Comments

This article has been very useful. Thanks.

Eloy

I like the article. I have used up every letter in the alphabet with my drives. Do you know how I can map more drives? Is there a command in Windows that will maybe let me use letters such as 'AA', 'BB', CC' and so on? If not, is there software I can purchase that will help me accomplish this objective?

David Meyer

For the last few days, we've had a PC start up with mapped drives disconnected. Your article reminded me about the need for clock synchronization. Ours had gotten a little off. Thanks.

Gary Vetter

to david meyer Don't undestand the problem of mapping drive number. I mount my vols under directory as permitted since w2k

cezanna

I am told that in the world of MS, where a server is sharing its drive for applications, when a client runs the application, the application actually runs on the server and therefore uses the server's CPU, Memory resources. This is certainly not true in the Unix world, though it may use a little CPU, and memory as well as I/O bandwidth for the over head of sharing out its drive. In regards to Windows, can you confirm where the application actually runs or point me to some documentation that explains this?

Ron Bogard

Any one knows how to rename (label) a network drive, using command line ? Usually the drive is called: folder on server (letter driver), I wolud like to rename it in FOLDER1 as you can do in driver properties with LABEL box.

Thanks in advance P.

Paolo

Very informative. I grew up in the DOS world. Since GUI the DOS commenads have not gotten daily use. This really helps with the "Use it or loose it" problem. Thank you very much

ASAPCS

Can you tel me how can i rename a network drive eks:h:\\servet01$ to h:\\01s$ thanks marco

Marco

mDrive = "F:\" Set oShell = CreateObject("Shell.Application") oShell.NameSpace(mDrive).Self.Name = "AnyName"

Chizl

Try this on for size, I use it to standardize drive names across my network:

set renameShell = createObject("shell.application") mappedDrive = "P:\" 'Your drive letter renameShell.nameSpace(mappedDrive).self.name = "Drive Name"

Hope this helps...

Will

Does anyone know how to reverse the net config server /autodisconnect:-1 command? Or further, what the other two values are that are changed? How to get them back to their orginal state? Best regards - the guy with the ridiculous username

Tom,Tom,TomClift

Can an ID password be passed with this command?

Anonymous User

does anyone know to have a service map a drive when it starts

ministak

Article Rating 3 out of 5

test

Anonymous User

Article Rating 5 out of 5

I set up drive mapping on this particular computer running W2k awhile ago. Now it won't retain the mapped drive in "My Computer" for restricted user account. The shortcut for the mapped drive disappears after restarting. Now if I tried to set up a new restricted account and the mapped drive shortcut stays, even after restarting. I suspect the profile on the account I created before is corrupted. I would like to know what to check in this situation. Thanks in advance.

Anonymous User

Article Rating 5 out of 5

See More Comments  1   2   3