HOW TO: Install and Use the Drive Share Utility in Windows 2000 Terminal Services (321711)



The information in this article applies to:

  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional
  • Microsoft Windows 2000 Server

This article was previously published under Q321711

SUMMARY

This article describes how to use the Drive Share (Drmapsrv.exe) utility to share and connect to local drives from a Windows 2000 Terminal Services client session.

back to the top

Overview of Drive Share

Drive Share is available in the Microsoft Windows 2000 Server Resource Kit. It is a Terminal Services command-line utility that automatically configures the net share and net use commands for the local drives of the Terminal Services client computer. After you connect to the Terminal Server computer, Drive Share maps all local drives on the user's computer to the Terminal Services client session. By doing this, the user can interact directly with drives on both the local computer and remote computer from a Terminal Services client session.

Drive Share includes the following two components:
  1. Drmapclt.dll: This file provides the drive enumeration and sharing on the client side. It belongs in the Terminal Services Client folder on the client computer and is referenced through the registry.
  2. Drmapsrv.exe: This file provides the drive connection on the server side. It belongs in the Winnt\System32 folder on the Terminal Server computer and is referenced through the registry.
NOTE: Drive Share automates the net share and net use commands to map the local drives of the client computer to a Terminal Services session. Note that the same security and limitations apply whether this sharing is performed manually or by using this tool.

back to the top

How to Install Drive Share

Drive Share must be installed on the Terminal Server computer, and on each Terminal Services client computer.

Install Drive Share on the Terminal Server Computer

To install Drive Share on the Terminal Server computer, use one of the following methods, as appropriate to your situation.

If the Windows 2000 Resource Kit Is Installed on the Computer:
  1. Navigate to the folder in which the Windows 2000 Server Resource Kit is installed (by default, Program Files\Resource Kit), and then locate the following two files:

    Drmapsrv.exe
    Drmapsrv.reg

  2. Copy Drmapsrv.exe from the folder that you located in step 1 to the Winnt\System32 folder on your computer's hard disk.
  3. Double-click Drmapsrv.reg.

    Click Yes when you are prompted to add the information to the registry, and then click OK when you are prompted that the information has been successfully entered into the registry.
back to the top

If the Windows 2000 Resource Kit Is Not Installed on the Computer:
  1. Insert the Windows 2000 Server CD-ROM into your computer's CD-ROM or DVD-ROM drive.
  2. Navigate to the drive:\Netmgmt.cab file (where drive is the computer's CD-ROM or DVD-ROM drive that contains the Windows 2000 Server Resource Kit CD-ROM), and then locate the following two files:

    Drmapsrv.exe
    Drmapsrv.reg

  3. Copy Drmapsrv.exe to the Winnt\System32 folder on your computer's hard disk.
  4. Copy Drmapsrv.reg to the desktop, and then double-click it.

    Click Yes when you are prompted to add the information to the registry, and then click OK when you are prompted that the information has been successfully entered into the registry.
back to the top

Install Drive Share on the Terminal Services Client Computer

To install Drive Share on the Terminal Services client computer, follow these steps:
  1. Copy the Drmapclt.dll file from the folder in which the Windows 2000 Server Resource Kit is installed (by default, Program Files\Resource Kit), or from the Netmgmt.cab file on the Windows 2000 Server Resource Kit CD-ROM, to the Terminal Services Client installation folder.

    By default, the Terminal Services client installation folder is C:\Program Files\Terminal Services Client. This is the same folder that contains the Mstsc.exe file.
  2. Copy the Drmapclt.reg file from the folder in which the Windows 2000 Server Resource Kit is installed (by default, Program Files\Resource Kit), or from the Netmgmt.cab file of the Windows 2000 Server Resource Kit CD-ROM, to the desktop, and then double-click it.

    Click Yes when you are prompted to add the information to the registry, and then click OK when you are prompted that the information has been successfully entered into the registry.
back to the top

Example of How to Use Drive Share

The following is an example that describes how to use Drive Share:

  1. Install Drive Share to a client computer. For example, install Drive Share to a computer named MyPC, in which the floppy disk drive is drive A, the hard disk is drive C, and the CD-ROM drive is drive D.
  2. Start Terminal Services Client, and then connect to the Terminal Server computer (on which Drive Share is also installed).
  3. In the Terminal Services session, open My Computer.

    You receive a display similar to the following in the My Computer window:

    Floppy (A:)
    Local Disk (C:)
    Compact Disc (D:)
    D$ on 'MyPC' (X:)
    C$ on 'MyPC' (Y:)
    A$ on 'MyPC' (Z:)

    In this example, note that "A", "C", and "D" refer to the floppy disk, hard disk, and CD-ROM drives (respectively) on the Terminal Server computer. And "X", "Y", and "Z" are mapped to the CD-ROM, hard disk, and floppy disk drives (respectively) on the client computer. These mappings permit the user to interact directly with the CD-ROM, hard disk, and floppy disk drives of the local computer.
back to the top

REFERENCES

For additional information about Terminal Services utilities in the Windows 2000 Resource Kit, click the article number below to view the article in the Microsoft Knowledge Base:

240444 Useful Terminal Services Resource Kit Utilities

For more information about the net share and net use commands, see Windows 2000 Help. To do this, click Start, click Help, click the Index tab, type net share or net use, and then view the list of topics returned.

For more information about the Windows 2000 Server Resource Kit, visit the following Microsoft Web site: For more information about Windows 2000 Terminal Services, visit the following Microsoft Web site: back to the top

Modification Type:MajorLast Reviewed:9/27/2006
Keywords:kbhowto kbHOWTOmaster KB321711 kbAudITPro