How to auto-map printer in terminal user logon?


A

Alexander Brown

How to auto-map printer in terminal user logon?
Use batch? I can use "net use lpt1 \\server\printer" to map
a printer in dos mode.
How to use batch to map network printer for windows based
applicaiton use?

Thanks
 
Ad

Advertisements

V

Vera Noest [MVP]

You should not map printers in a batch job at all, the local printer
should be automatically created in the user sessions.

Check that you have enabled redirection of printers in the TS
Connection Configuration. Check the client settings as well.

Are these prointers local LPT connected printers, or network
printers? If so, make sure you run the latest rdp client,
downloadable here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=a8255ffc-
4b4a-40e7-a706-cde7e9b57e79&DisplayLang=en

You could also have a problem with mismatch or missing printer
drivers. If that's the case, you will have to map the local printers
to native printer drivers on the server. Check the EventLog on the TS
for details.

239088 - Windows 2000 Terminal Services Server Logs Events 1111,
1105, and 1106
http://support.microsoft.com/?kbid=239088
 
A

Alexander Brown

My target is according the user ID to assign to network
printer. But it is running on PDA terminal client.

For example, user 1 login in PDA and redirect default
printer to printer 1, user 2 login in the same PDA and
redirect default printer to printer2.

Thanks
 
Ad

Advertisements

V

Vera Noest [MVP]

OK, that makes a difference.

Setting the default printer is easiest done within the users
logon script. You'll need some sort of utility to do this:
Defprint.exe controls local printers, Con2prt.exe controls
network printers, or use a KiXtart script.

Examples (check for correct syntax!)

if %clientname% == CLIENT01 con2prt.exe \\TS\printer01

if %clientname% == CLIENT01 DefPrint.exe /d "HP OfficeJet"

if %clientname% = "CLIENT01"
SetDefaultPrinter ("\\TS\printer01")
endif

Defprint.exe can be downloaded here:
http://www.dcug.de/phpnuke/html/modules.php?
name=Downloads&d_op=MostPopular

con2prt.exe is part of the NT Resource Kit.
KiXtart can be downloaded from http://www.kixtart.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top