Microsoft KB Archive/321711

= HOW TO: Install and Use the Drive Share Utility in Windows 2000 Terminal Services =

Article ID: 321711

Article Last Modified on 3/29/2007

-

APPLIES TO


 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition
 * Microsoft Windows 2000 Server

-



This article was previously published under Q321711



IN THIS TASK
SUMMARY Overview of Drive Share How to Install Drive Share Install Drive Share on the Terminal Server Computer
 * If the Windows 2000 Resource Kit Is Installed on the Computer
 * If the Windows 2000 Resource Kit Is Not Installed on the Computer

Install Drive Share on the Terminal Services Client Computer Example of How to Use Drive Share REFERENCES



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:  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

 Copy Drmapsrv.exe from the folder that you located in step 1 to the Winnt\System32 folder on your computer's hard disk. 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:  Insert the Windows 2000 Server CD-ROM into your computer's CD-ROM or DVD-ROM drive. Navigate to the :\Netmgmt.cab file (where   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

 Copy Drmapsrv.exe to the Winnt\System32 folder on your computer's hard disk.</li> 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.</li></ol>

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.
 * 1) 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:

 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.</li> Start Terminal Services Client, and then connect to the Terminal Server computer (on which Drive Share is also installed).</li> 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 &quot;A&quot;, &quot;C&quot;, and &quot;D&quot; refer to the floppy disk, hard disk, and CD-ROM drives (respectively) on the Terminal Server computer. And &quot;X&quot;, &quot;Y&quot;, and &quot;Z&quot; 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.</li></ol>

back to the top

<div class="references_section">