How to auto-map printer in terminal user logon?

  • Thread starter Thread starter Alexander Brown
  • Start date Start date
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
 
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
 
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
 
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
 
Back
Top