Subscribe to Windows IT Pro
October 13, 2000 12:00 AM

Mapping Client Drives and Printers with RDP

Windows IT Pro
InstantDoc ID #15864
Rating: (0)

Q: I've heard that RDP for Windows 2000 Server Terminal Services can map client drives and printers the way ICA does, but I can't figure out how to make it work. Can you explain?

RDP for Terminal Services has many more features than older versions, but many of those features aren't like what you might be accustomed to with ICA. Some of the new abilities include automapping for client drives and printers as well as load balancing, remote control, Web-enabled application deployment, COM port mapping, LPT mapping, and clipboard mapping.

To access a device, such as a drive or printer, attached to a client terminal in a Terminal Services session, you must use the Uniform Naming Convention (UNC) name of the client share, just as you do with any other remote shared object. To share a drive or printer, you use the built-in net share and net use commands to connect to the client device.

To make a client's local drives available, log on to the client computer, and go to the root of the drive you want to make available. Create a new share, and assign permissions to it. Then log on to the Terminal Services session and map the new share.

Included with the Windows 2000 Server Resource Kit is Drive Share, a tool that automatically makes client drives available within a client session. Drive Share is a command line tool supported on Win2K and Windows NT clients, and it requires a few registry changes on the client and the server to make it work. Drive Share automates the Net Share and Net Use commands so that they run automatically upon client connection for every local drive on the client computer. If you can't connect through a network share, however, you won't be able to connect with Drive Share either.

You can also map a printer as a network resource, but the mapping only works for a printer that is locally attached to a client's parallel or serial port. You can't map to a client printer shared from another network resource.

To automatically attach to a client printer, you configure the printer on the client computer running the Terminal Services client, then install the print driver locally and make the shared printer the default printer. Make sure the RDP protocol is configured to automap the client printer in the Terminal Services configuration. Under Connections/RDP-Tcp/Client Settings, choose "Connect Client Printers on Logon" and "Default to Main Client Printer." By default, these boxes should be checked, but if the printer doesn't map, these settings are the first place to check. You can check to see whether it worked by checking the Printers folder in the Terminal Services session to see that the default local printer is automatically added as the default printer in the Terminal Services session.

Unlike automapped drives, automapped printers are automatically added for Win2K, NT 4.0 Workstation and Server, Windows 9x, and Windows Millennium Edition (Windows Me) if you use the Win2K Plug and Play (PnP) feature and if the printer is a model for which a driver is already installed or supported.

When a printer is automatically created, it is registered in the server's HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\##?#Root#RDPDR#0000#{28d78fad-5a12-11d1-ae5b-0000f803a8c2} registry subkey.

Related Content:

ARTICLE TOOLS

Comments
  • Marek
    9 years ago
    Dec 26, 2003

    Dave,
    Thanks for a very informative article.
    I followed the instructions for drive share. The client drives get automatically connected to z:, y:, x:, etc.
    Is there a way to 'shift' the drive mappings to start at, say w:?
    Thanks,

  • everett
    9 years ago
    Jul 29, 2003

    Is there a way to add printers to a Terminal Session from the Terminal Server when the User is using a pocket Pc. I have two terminal servers active, one primary the other backup, whenever the primary goes down the Pocket Pc user uses the backup but I have to logon as each user and remap thier net network printers is there a simpler way of doing this?...

  • Joseph Nguyen
    9 years ago
    Feb 19, 2003

    Hi David,

    In your article, you mentioned that Drive Share tool can automatically makes client drives available within a client session by making a few registry changes. When I go to click on the registry hypertext link, I'm unable to find anything related to RDP drive mappings. Would it be possible for you to send me the information via e-mail?

    Thanks,

  • Cláudio Rodrigues
    11 years ago
    Jun 27, 2001

    You can map network printers when using RDP. The trick is to install this printer as local on your PC and use a NET USE to map it to a network resource. This and other common printing issues under RDP are explained (with explanations on how to fix them) on the article I wrote and posted on the newsgroups many times.

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.